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 / niranjan kumar niraj

d)Compile error

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Dont ansi function prototypes render lint obsolete?

1061


Do you know null pointer?

974


Does c have an equivalent to pascals with statement?

958


How does pointer work in c?

1070


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1078


What is the condition that is applied with ?: Operator?

1069


Is swift based on c?

1052


What is the hardest programming language?

1098


What is a static variable in c?

1066


Explain the use of function toupper() with and example code?

1077


what do the 'c' and 'v' in argc and argv stand for?

1114


Explain how can I remove the trailing spaces from a string?

990


What is int main () in c?

1027


How can I invoke another program or command and trap its output?

1045


how to count no of words,characters,lines in a paragraph.

4376