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

answer a

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 difference between if else and switchstatement

1933


What are header files why are they important?

1091


What is a dynamic array in c?

1159


Explain threaded binary trees?

1158


How many bytes are occupied by near, far and huge pointers (dos)?

1154


How do we make a global variable accessible across files? Explain the extern keyword?

1883


What is the use of define in c?

1064


When should I declare a function?

1133


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

965


write a c program for swapping two strings using pointer

2630


What is the basic structure of c?

1085


write a program for the normal snake games find in most of the mobiles.

2258


What does %d do in c?

964


What is an expression?

1059


What is the purpose of the statement: strcat (S2, S1)?

1165