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 / shashi singh

compiler error

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of c in your views?

585


What are the 4 data types?

591


Is there anything like an ifdef for typedefs?

694


How do you list files in a directory?

553


Explain what are the different data types in c?

745






What is zero based addressing?

701


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

592


Why do we use pointer to pointer in c?

587


Can a variable be both const and volatile?

663


What are different storage class specifiers in c?

611


What are the 4 types of unions?

601


What are the features of c languages?

619


Explain main function in c?

616


Why functions are used in c?

578


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

709