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 / guruprasad
Compiler Error= Initializer Syntax Error in function main();
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How reliable are floating-point comparisons?
What does typedef struct mean?
can we change the default calling convention in c if yes than how.........?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Can 'this' pointer by used in the constructor?
Explain the use of bit fieild.
Differentiate between Macro and ordinary definition.
Where are the auto variables stored?
Place the #include statement must be written in the program?
What is c language & why it is used?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
How can a program be made to print the name of a source file where an error occurs?
When can a far pointer be used?
Which node is more powerful and can handle local information processing or graphics processing?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none