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
Answer Posted / 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 View All Answers
How can I find out the size of a file, prior to reading it in?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is preprocessor with example?
Explain what is the difference between a string and an array?
Explain indirection?
What do you mean by dynamic memory allocation in c?
What does the message "automatic aggregate intialization is an ansi feature" mean?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Are global variables static in c?
What is a structure and why it is used?
In C, What is the #line used for?
What does the && operator do in a program code?
What are terms in math?
Explain what is the heap?
What is the difference between array_name and &array_name?