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



main() { char *a = "Hello "; char *b = "World"; clrscr()..

Answer / guest

b)

Is This Answer Correct ?    11 Yes 3 No

main() { char *a = "Hello "; char *b = "World"; clrscr()..

Answer / manju

Ans. C
No space between hello and world

Is This Answer Correct ?    4 Yes 2 No

main() { char *a = "Hello "; char *b = "World"; clrscr()..

Answer / bhavsaramol9911

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

Post New Answer

More C Code Interview Questions

pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  


main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }

2 Answers  


Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 Answers  


main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }

1 Answers  


main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }

1 Answers  






C program to print magic square of order n where n > 3 and n is odd

2 Answers   Accenture,


main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


Link list in reverse order.

8 Answers   NetApp,


How to access command-line arguments?

4 Answers  


Implement a t9 mobile dictionary. (Give code with explanation )

1 Answers   Amazon, Peak6, Yahoo,


write a origram swaoing valu without 3rd variable

2 Answers  


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

1 Answers  


Categories