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
Why c is known as a mother language?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What are the advantages of using macro in c language?
write a program to display all prime numbers
Explain how can you restore a redirected standard stream?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Why static variable is used in c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is static memory allocation? Explain
What are the usage of pointer in c?
What are the advantages of external class?
What does the c in ctime mean?
How can I handle floating-point exceptions gracefully?
What does nil mean in c?