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
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 |
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is a structure in c language. how to initialise a structure in c?
What is call by value in c?
program to find a smallest number in an array
what are the advantage and disadvantage of recursion
How can a program be made to print the line number where an error occurs?
Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?
2 Answers ME, Synfusion, Wipro,
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What happens if header file is included twice?
what is recursion in C
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.
How to reverse alternate words in a given line of string For Eg: my name is narasimha output : my eman is ahmisaran