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 / niranjan kumar niraj
d)Compile error
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is external variable in c?
What is the use of getchar functions?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Can stdout be forced to print somewhere other than the screen?
Do you know the use of fflush() function?
How are variables declared in c?
Is it possible to have a function as a parameter in another function?
What is maximum size of array in c?
What is I ++ in c programming?
What is extern keyword in c?
What are structure types in C?
How does sizeof know array size?
Where local variables are stored in c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Explain can static variables be declared in a header file?