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

#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }

1 Answers  


main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 Answers  


What is your nationality?

1 Answers   GoDB Tech,


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

3 Answers   HCL,


Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 Answers  






How we print the table of 2 using for loop in c programing?

14 Answers   HCL, Wipro,


what is the code of the output of print the 10 fibonacci number series

2 Answers  


#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }

1 Answers  


Give a one-line C expression to test whether a number is a power of 2.

10 Answers   Microsoft,


Finding a number multiplication of 8 with out using arithmetic operator

8 Answers   Eyeball, NetApp,


Given n nodes. Find the number of different structural binary trees that can be formed using the nodes.

16 Answers   Aricent, Cisco, Directi, Qualcomm,


main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }

1 Answers  


Categories