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
What does int main () mean?
What is the scope of static variable in c?
What is operator precedence?
what do you mean by inline function in C?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Explain what standard functions are available to manipulate strings?
Explain what does a function declared as pascal do differently?
Explain what are multibyte characters?
What is typeof in c?
Explain what does the format %10.2 mean when included in a printf statement?
How does selection sort work in c?
Why #include is used in c language?
Explain what is the difference between null and nul?
Why dont c comments nest?
Explain how do you print only part of a string?