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
Explain how can I make sure that my program is the only one accessing a file?
Why are all header files not declared in every c program?
What does *p++ do? What does it point to?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is meant by gets in c?
What is the use of static variable in c?
Explain what is dynamic data structure?
What is conio h in c?
all c language question
Explain why c is faster than c++?
What is the purpose of the statement: strcat (S2, S1)?
What is the difference between int main and void main?
What is calloc malloc realloc in c?
Explain how do you view the path?
What are the uses of null pointers?