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

why do some people write if(0 == x) instead of if(x == 0)?

647


What is pass by reference in functions?

318


Explain what is a program flowchart and explain how does it help in writing a program?

641


How do you determine a file’s attributes?

592


Differentiate between #include<...> and #include '...'

612






#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

709


What is structure of c program?

597


Tell us the use of fflush() function in c language?

631


Which is more efficient, a switch statement or an if else chain?

571


What is abstract data structure in c?

517


Give basis knowledge of web designing ...

1566


What does c mean in standard form?

592


How can you invoke another program from within a C program?

609


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1121


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

585