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 / b subrahmanyam
What does the current output look like this ans is c)
string1=MANISH KUMAR CHOUDHARY
string2=null
string3=null
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Why & is used in c?
What is static and auto variables in c?
When should you not use a type cast?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
Is stack a keyword in c?
Is c still relevant?
what is recursion in C
What does d mean?
Who developed c language?
When was c language developed?
What is sizeof int?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
How is a null pointer different from a dangling pointer?
Is exit(status) truly equivalent to returning the same status from main?