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 / shashi singh
compiler error
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write a program to print largest number of each row of a 2D array
Can we compile a program without main() function?
Differentiate Source Codes from Object Codes
Explain how do you sort filenames in a directory?
What is "Duff's Device"?
Why does everyone say not to use gets?
What is void pointers in c?
What is gets() function?
Why ca not I do something like this?
Can you return null in c?
What is hash table in c?
explain how do you use macro?
What are the rules for the identifier?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
How can I read a binary data file properly?