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 / niranjan kumar niraj

d)Compile error

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is external variable in c?

612


What is the use of getchar functions?

674


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

579


Can stdout be forced to print somewhere other than the screen?

623


Do you know the use of fflush() function?

601






How are variables declared in c?

599


Is it possible to have a function as a parameter in another function?

599


What is maximum size of array in c?

584


What is I ++ in c programming?

624


What is extern keyword in c?

644


What are structure types in C?

667


How does sizeof know array size?

627


Where local variables are stored in c?

554


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1591


Explain can static variables be declared in a header file?

678