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
What is wrong with this code?
Explain how can I avoid the abort, retry, fail messages?
Explain what is the benefit of using const for declaring constants?
Why main is used in c?
Can static variables be declared in a header file?
What is bin sh c?
What is "Duff's Device"?
What is the difference between array and linked list in c?
code for quick sort?
What is use of integral promotions in c?
What are the valid places to have keyword “break”?
Describe static function with its usage?
Is c is a high level language?
Write a program to print fibonacci series without using recursion?
write a program to create a sparse matrix using dynamic memory allocation.