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 / ankush

The answer seems like....
string1=MANISHKUMARCHAUDHARY
string2=(null)
string3=
And curser is blinking after the last line....





ankushtyagi2008@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the format %10.2 mean when included in a printf statement?

1086


What is the difference between functions getch() and getche()?

621


Where is c used?

648


What does stand for?

596


Explain the use of fflush() function?

626






Define VARIABLE?

690


Explain what does the function toupper() do?

633


What is ambagious result in C? explain with an example.

2057


Explain what are binary trees?

611


How can I access an I o board directly?

623


Why is c called a structured programming language?

675


What is malloc calloc and realloc in c?

668


Explain what is operator promotion?

635


Is c procedural or object oriented?

580


What are the types of pointers in c?

530