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

Explain how can I make sure that my program is the only one accessing a file?

614


Why are all header files not declared in every c program?

592


What does *p++ do? What does it point to?

608


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1433


What is meant by gets in c?

598






What is the use of static variable in c?

587


Explain what is dynamic data structure?

639


What is conio h in c?

614


all c language question

1860


Explain why c is faster than c++?

564


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

636


What is the difference between int main and void main?

567


What is calloc malloc realloc in c?

584


Explain how do you view the path?

644


What are the uses of null pointers?

588