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 do some people write if(0 == x) instead of if(x == 0)?
What is pass by reference in functions?
Explain what is a program flowchart and explain how does it help in writing a program?
How do you determine a file’s attributes?
Differentiate between #include<...> and #include '...'
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What is structure of c program?
Tell us the use of fflush() function in c language?
Which is more efficient, a switch statement or an if else chain?
What is abstract data structure in c?
Give basis knowledge of web designing ...
What does c mean in standard form?
How can you invoke another program from within a C program?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Explain the use of keyword 'register' with respect to variables.