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 / niranjan kumar niraj
d)Compile error
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Dont ansi function prototypes render lint obsolete?
Do you know null pointer?
Does c have an equivalent to pascals with statement?
How does pointer work in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is the condition that is applied with ?: Operator?
Is swift based on c?
What is the hardest programming language?
What is a static variable in c?
Explain the use of function toupper() with and example code?
what do the 'c' and 'v' in argc and argv stand for?
Explain how can I remove the trailing spaces from a string?
What is int main () in c?
How can I invoke another program or command and trap its output?
how to count no of words,characters,lines in a paragraph.