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 / ramlal bishnoi

d) compiler error

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is known as a mother language?

631


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1066


What are the advantages of using macro in c language?

584


write a program to display all prime numbers

1448


Explain how can you restore a redirected standard stream?

584






a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

645


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

644


Why static variable is used in c?

546


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

646


What is static memory allocation? Explain

625


What are the usage of pointer in c?

697


What are the advantages of external class?

588


What does the c in ctime mean?

557


How can I handle floating-point exceptions gracefully?

624


What does nil mean in c?

665