main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcat(a,b));
}
a. Hello
b. Hello World
c. HelloWorld
d. None of the above
Answers were Sorted based on User's Feedback
Its B...
because there is a Space after Hello and then concate second string i.e World
so OUTPUT Hello World
| Is This Answer Correct ? | 1 Yes | 0 No |
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
Write a single line c expression to delete a,b,c from aabbcc
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);
How we print the table of 2 using for loop in c programing?
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
union u { struct st { int i : 4; int j : 4; int k : 4; int l; }st; int i; }u; main() { u.i = 100; printf("%d, %d, %d",u.i, u.st.i, u.st.l); } a. 4, 4, 0 b. 0, 0, 0 c. 100, 4, 0 d. 40, 4, 0
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.
19 Answers Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }