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
What is a pointer on a pointer in c programming language?
What are global variables and explain how do you declare them?
Write a program to print ASCII code for a given digit.
How can I implement a delay, or time a users response, with sub-second resolution?
Explain why can’t constant values be used to define an array’s initial size?
What is c++ used for today?
Calculate 1*2*3*____*n using recursive function??
How can variables be characterized?
What does & mean in scanf?
explain what is a newline escape sequence?
Explain the use of function toupper() with and example code?
Why is c called a structured programming language?
What are multidimensional arrays?
What is the use of static variable in c?
What is data types?