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 / 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 does int main () mean?

1032


What is the scope of static variable in c?

1027


What is operator precedence?

1216


what do you mean by inline function in C?

1059


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1078


Explain what standard functions are available to manipulate strings?

1080


Explain what does a function declared as pascal do differently?

1300


Explain what are multibyte characters?

1203


What is typeof in c?

1018


Explain what does the format %10.2 mean when included in a printf statement?

1367


How does selection sort work in c?

1045


Why #include is used in c language?

1055


Explain what is the difference between null and nul?

1161


Why dont c comments nest?

1053


Explain how do you print only part of a string?

1222