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
Why do we use namespace feature?
a c code by using memory allocation for add ,multiply of sprase matrixes
Are the outer parentheses in return statements really optional?
How to create struct variables?
Explain enumerated types.
Should I learn c before c++?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
How can I read a binary data file properly?
Do you know what are bitwise shift operators in c programming?
What are the 5 types of organizational structures?
What is the use of getch ()?
What are pointers? What are different types of pointers?
What is c token?
What is the purpose of void in c?
Explain what is a const pointer?