what wud be the output?
main()
{
char *str[]={
"MANISH"
"KUMAR"
"CHOUDHARY"
};
printf("\nstring1=%s",str[0]);
printf("\nstring2=%s",str[1]);
printf("\nstring3=%s",str[2]);
a)string1=Manish
string2=Kumar
string3=Choudhary
b)string1=Manish
string2=Manish
string3=Manish
c)string1=Manish Kumar Choudhary
string2=(null)
string3=(null)
d)Compiler error
Answer Posted / ravi
answer a
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between if else and switchstatement
What are header files why are they important?
What is a dynamic array in c?
Explain threaded binary trees?
How many bytes are occupied by near, far and huge pointers (dos)?
How do we make a global variable accessible across files? Explain the extern keyword?
What is the use of define in c?
When should I declare a function?
What is the difference between the local variable and global variable in c?
write a c program for swapping two strings using pointer
What is the basic structure of c?
write a program for the normal snake games find in most of the mobiles.
What does %d do in c?
What is an expression?
What is the purpose of the statement: strcat (S2, S1)?