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 the scope of static variable in c?
Explain what is operator promotion?
What happens if a header file is included twice?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
can anyone suggest some site name..where i can get some good data structure puzzles???
Explain what does a function declared as pascal do differently?
What is pointer & why it is used?
What is adt in c programming?
Why is C language being considered a middle level language?
What is a structural principle?
Which is an example of a structural homology?
What is sizeof int?
What is volatile, register definition in C
How do I use strcmp?