What is the o/p of the follow pgm?

#include<stdio.h>

main()

{

char char_arr[5]=”ORACL”;

char c=’E’;

prinf(“%s\n”,strcat(char_arr,c));

}



a:oracle

b. oracl

c.e

d.none

Answers were Sorted based on User's Feedback



What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”..

Answer / kalyan chukka

None

Is This Answer Correct ?    2 Yes 3 No

What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”..

Answer / sadanand

error in program... strcat is used to concatinate 2 strings.
in above program c is char and not string so compilation error

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

To find whether a number is even or odd without using any conditional operator??

12 Answers   College School Exams Tests, IBM,


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

0 Answers   Mind Tree,


wats SIZE_T meant for?

1 Answers  


Why should I use standard library functions instead of writing my own?

0 Answers  


main() { char *p; p="Hello"; printf("%c\n",*&*p); }

2 Answers   ME,






What's a "sequence point"?

3 Answers  


What are the advantages of the functions?

0 Answers  


What does the c in ctime mean?

0 Answers  


what are the difference between ANSI C and Let Us c and Turbo C

4 Answers   LG Soft,


What is the size of array float a(10)?

0 Answers  


How can I use a preprocessorif expression to ?

0 Answers  


Why c is called object oriented language?

0 Answers  


Categories