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 does the format %10.2 mean when included in a printf statement?
What is the difference between functions getch() and getche()?
Where is c used?
What does stand for?
Explain the use of fflush() function?
Define VARIABLE?
Explain what does the function toupper() do?
What is ambagious result in C? explain with an example.
Explain what are binary trees?
How can I access an I o board directly?
Why is c called a structured programming language?
What is malloc calloc and realloc in c?
Explain what is operator promotion?
Is c procedural or object oriented?
What are the types of pointers in c?