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

Compiler Error= Initializer Syntax Error in function main();

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this code?

693


Explain how can I avoid the abort, retry, fail messages?

589


Explain what is the benefit of using const for declaring constants?

614


Why main is used in c?

587


Can static variables be declared in a header file?

614






What is bin sh c?

581


What is "Duff's Device"?

701


What is the difference between array and linked list in c?

600


code for quick sort?

1622


What is use of integral promotions in c?

666


What are the valid places to have keyword “break”?

649


Describe static function with its usage?

608


Is c is a high level language?

618


Write a program to print fibonacci series without using recursion?

610


write a program to create a sparse matrix using dynamic memory allocation.

4373