Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

If errno contains a nonzero number, is there an error?

1291


What is linear search?

1088


What is the difference between arrays and pointers?

1067


What is infinite loop?

1028


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1095


What is difference between function overloading and operator overloading?

1046


What is the difference between the local variable and global variable in c?

927


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1190


How do you declare a variable that will hold string values?

1104


Write a program to implement queue.

1066


What is structure padding in c?

1058


What is the use of bit field?

1116


Why is c called c?

956


Can you apply link and association interchangeably?

1071


What is the use of gets and puts?

972