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 / guruprasad
Compiler Error= Initializer Syntax Error in function main();
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Explain how do you list files in a directory?
What is far pointer in c?
Write a program to swap two numbers without using third variable in c?
What are the types of i/o functions?
What is d scanf?
What is volatile c?
Why is it important to memset a variable, immediately after allocating memory to it ?
How many bytes are occupied by near, far and huge pointers (dos)?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Why do we use static in c?
Difference between goto, long jmp() and setjmp()?
What do you understand by normalization of pointers?
please send me the code for multiplying sparse matrix using c
Explain what is the difference between the expression '++a' and 'a++'?