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 is an array? What the different types of arrays in c?

658


What is printf () in c?

578


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15502


What is the difference between the expression “++a” and “a++”?

650


What are the types of bitwise operator?

660






Why doesnt that code work?

600


Why isn't any of this standardized in c? Any real program has to do some of these things.

623


Write a program to swap two numbers without using third variable in c?

616


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

620


Are there namespaces in c?

566


Explain the difference between getch() and getche() in c?

565


Linked lists -- can you tell me how to check whether a linked list is circular?

646


Why should I prototype a function?

636


What are identifiers c?

562


Write a program to implement queue.

666