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 do header files do?
What is the difference between #include
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What is the difference between ++a and a++?
What are the application of c?
Is stack a keyword in c?
Can you pass an entire structure to functions?
What is linear search?
Explain how can I convert a string to a number?
What are linked lists in c?
What is line in c preprocessor?
What is 1d array in c?
what is stack , heap ,code segment,and data segment
Explain c preprocessor?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon