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 / b subrahmanyam
What does the current output look like this ans is c)
string1=MANISH KUMAR CHOUDHARY
string2=null
string3=null
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is variable and explain rules to declare variable in c?
What is s in c?
How do you define CONSTANT in C?
What is difference between function overloading and operator overloading?
Write a factorial program using C.
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is the difference between a function and a method in c?
Explain threaded binary trees?
write a program for the normal snake games find in most of the mobiles.
Explain how does free() know explain how much memory to release?
What is line in c preprocessor?
Explain the use of keyword 'register' with respect to variables.
What is the 'named constructor idiom'?
What is a null pointer in c?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?