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

answer a

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 typedef example?

607


What is the use of c language in real life?

520


Explain enumerated types in c language?

598


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1482


How can you return multiple values from a function?

621






Why is #define used?

783


How can I insert or delete a line (or record) in the middle of a file?

564


How can I recover the file name given an open stream or file descriptor?

586


What is the use of a static variable in c?

582


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1169


What is a node in c?

541


Multiply an Integer Number by 2 Without Using Multiplication Operator

310


What does d mean?

570


What is #ifdef ? What is its application?

638


How do you define a string?

647