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 / shashi singh
compiler error
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between strcpy() and memcpy() function?
What is the use of ?: Operator?
Is null a keyword in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is #include stdio h?
What is the general form of #line preprocessor?
Write a simple code fragment that will check if a number is positive or negative.
What is %g in c?
What does it mean when a pointer is used in an if statement?
What are operators in c?
What is nested structure with example?
Explain what is meant by high-order and low-order bytes?
Explain how can I convert a string to a number?
Explain how can a program be made to print the line number where an error occurs?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile