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
program for reversing a selected line word by word when multiple lines are given without using strrev
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Can we increase size of array in c?
define string ?
What is the difference between scanf and fscanf?
What is the use of sizeof () in c?
How can I avoid the abort, retry, fail messages?
Do you know the difference between exit() and _exit() function in c?
Difference between goto, long jmp() and setjmp()?
What is function prototype?
How can you be sure that a program follows the ANSI C standard?
Why structure is used in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is a structure in c language. how to initialise a structure in c?
What is the best style for code layout in c?