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
What is typedef example?
What is the use of c language in real life?
Explain enumerated types in c language?
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
How can you return multiple values from a function?
Why is #define used?
How can I insert or delete a line (or record) in the middle of a file?
How can I recover the file name given an open stream or file descriptor?
What is the use of a static variable in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is a node in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What does d mean?
What is #ifdef ? What is its application?
How do you define a string?