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
Tell us bitwise shift operators?
What are examples of structures?
What is size of union in c?
Describe the steps to insert data into a singly linked list.
What is the difference between variable declaration and variable definition in c?
What Is The Difference Between Null And Void Pointer?
Can we change the value of constant variable in c?
Apart from dennis ritchie who the other person who contributed in design of c language.
Explain what are bus errors, memory faults, and core dumps?
What is a string?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What are c identifiers?
Do you know what are the properties of union in c?
write a program for the normal snake games find in most of the mobiles.
What is the use of getch ()?