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 / b subrahmanyam

What does the current output look like this ans is c)

string1=MANISH KUMAR CHOUDHARY
string2=null
string3=null

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why & is used in c?

1117


What is static and auto variables in c?

1021


When should you not use a type cast?

1070


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

979


Is stack a keyword in c?

1038


Is c still relevant?

1035


what is recursion in C

1019


What does d mean?

1018


Who developed c language?

1039


When was c language developed?

1140


What is sizeof int?

1049


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1085


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3636


How is a null pointer different from a dangling pointer?

974


Is exit(status) truly equivalent to returning the same status from main?

1008