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 / b subrahmanyam
What does the current output look like this ans is c)
string1=MANISH KUMAR CHOUDHARY
string2=null
string3=null
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain setjmp()?
Can we declare variable anywhere in c?
write a proram to reverse the string using switch case?
What is array within structure?
Is file a keyword in c?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Is a house a mass structure?
What is operator precedence?
Can you please explain the difference between exit() and _exit() function?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Explain null pointer.
Explain how can I prevent another program from modifying part of a file that I am modifying?
What does == mean in texting?
List some of the dynamic data structures in C?
Is register a keyword in c?