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 / ankush
The answer seems like....
string1=MANISHKUMARCHAUDHARY
string2=(null)
string3=
And curser is blinking after the last line....
ankushtyagi2008@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the advantages and disadvantages of a heap?
What is switch in c?
What are variables c?
How can you increase the size of a statically allocated array?
How can I swap two values without using a temporary?
What is #line used for?
Explain why C language is procedural?
What is the use of getchar functions?
What is the difference between single charater constant and string constant?
what is a function method?give example?
What is the stack in c?
When should volatile modifier be used?
What is the purpose of main( ) in c language?
What is the difference between malloc() and calloc()?
Why header files are used?