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
What is difference between && and & in c?
What are the restrictions of a modulus operator?
What are the storage classes in C?
What does *p++ do? What does it point to?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Explain what are the different file extensions involved when programming in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is line in c preprocessor?
Explain what are global variables and explain how do you declare them?
What is meant by type casting?
What is a wrapper function in c?
What does the c preprocessor do?
Why are all header files not declared in every c program?
What is a constant?