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

main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }

1 Answers  


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

0 Answers   Microsoft,


Design an implement of the inputs functions for event mode

0 Answers   Wipro,


main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } a. Runtime error. b. 0, 0 c. Compile error d. the first two values entered by the user

2 Answers   HCL,


main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }

1 Answers  






Is the following code legal? struct a { int x; struct a b; }

1 Answers  


Cluster head selection in Wireless Sensor Network using C programming language.

0 Answers  


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

9 Answers   Microsoft,


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  


int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }

3 Answers   Cisco, HCL,


main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above

2 Answers   HCL,


void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }

1 Answers  


Categories