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

What is variable and explain rules to declare variable in c?

1091


What is s in c?

1055


How do you define CONSTANT in C?

1280


What is difference between function overloading and operator overloading?

1092


Write a factorial program using C.

1082


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1184


What is the difference between a function and a method in c?

1085


Explain threaded binary trees?

1158


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

2260


Explain how does free() know explain how much memory to release?

1079


What is line in c preprocessor?

1061


Explain the use of keyword 'register' with respect to variables.

1052


What is the 'named constructor idiom'?

1089


What is a null pointer in c?

1232


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1637