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 / ravi
answer a
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When should I declare a function?
Explain low-order bytes.
Are negative numbers true in c?
Can the curly brackets { } be used to enclose a single line of code?
What is an operator?
Can include files be nested?
What does. int *x[](); means ?
What is union and structure?
What are enumerated types?
using only #include
What are the types of pointers in c?
What is an endless loop?
What is operator precedence?
What are c preprocessors?
What is the default value of local and global variables in c?