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 / ramlal bishnoi
d) compiler error
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
If errno contains a nonzero number, is there an error?
What is linear search?
What is the difference between arrays and pointers?
What is infinite loop?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is difference between function overloading and operator overloading?
What is the difference between the local variable and global variable in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
How do you declare a variable that will hold string values?
Write a program to implement queue.
What is structure padding in c?
What is the use of bit field?
Why is c called c?
Can you apply link and association interchangeably?
What is the use of gets and puts?