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 / ramlal bishnoi
d) compiler error
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the difference between Printf(..) and sprint(...) ?
Write a program for Overriding.
differentiate built-in functions and user – defined functions.
How do you determine a file’s attributes?
What is identifier in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
In C language, a variable name cannot contain?
What does malloc () calloc () realloc () free () do?
What is structure in c language?
What is function pointer c?
How would you obtain the current time and difference between two times?
Explain do array subscripts always start with zero?
Can you please explain the difference between syntax vs logical error?
How can you call a function, given its name as a string?
Explain what are its uses in c programming?