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
In a switch statement, what will happen if a break statement is omitted?
Do you know the difference between malloc() and calloc() function?
What is variable in c example?
What is the difference between array and pointer?
What does sizeof function do?
Can we declare variables anywhere in c?
What are all different types of pointers in c?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is array of structure in c?
while initialization of array why we use a[][2] why not a[2][]...?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Explain what are run-time errors?
Why header file is used in c?
What is the purpose of & in scanf?
Explain how can I make sure that my program is the only one accessing a file?