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
What is the importance of c in your views?
What are the 4 data types?
Is there anything like an ifdef for typedefs?
How do you list files in a directory?
Explain what are the different data types in c?
What is zero based addressing?
Is it possible to have a function as a parameter in another function?
Why do we use pointer to pointer in c?
Can a variable be both const and volatile?
What are different storage class specifiers in c?
What are the 4 types of unions?
What are the features of c languages?
Explain main function in c?
Why functions are used in c?
#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); }