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 / ankush

The answer seems like....
string1=MANISHKUMARCHAUDHARY
string2=(null)
string3=
And curser is blinking after the last line....





ankushtyagi2008@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of a heap?

1215


What is switch in c?

1108


What are variables c?

1055


How can you increase the size of a statically allocated array?

1081


How can I swap two values without using a temporary?

1110


What is #line used for?

1028


Explain why C language is procedural?

1226


What is the use of getchar functions?

1185


What is the difference between single charater constant and string constant?

1095


what is a function method?give example?

2368


What is the stack in c?

1156


When should volatile modifier be used?

1015


What is the purpose of main( ) in c language?

1142


What is the difference between malloc() and calloc()?

1866


Why header files are used?

1118