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 new line escape sequence?
Does free set pointer to null?
What is the best way of making my program efficient?
What is typedef struct in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Differentiate between the expression “++a” and “a++”?
Which of these functions is safer to use : fgets(), gets()? Why?
Explain argument and its types.
What does char * * argv mean in c?
What are external variables in c?
What are the types of pointers in c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is the difference between malloc calloc and realloc in c?
Why is structure important for a child?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.