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 an array? What the different types of arrays in c?
What is printf () in c?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is the difference between the expression “++a” and “a++”?
What are the types of bitwise operator?
Why doesnt that code work?
Why isn't any of this standardized in c? Any real program has to do some of these things.
Write a program to swap two numbers without using third variable in c?
Can the sizeof operator be used to tell the size of an array passed to a function?
Are there namespaces in c?
Explain the difference between getch() and getche() in c?
Linked lists -- can you tell me how to check whether a linked list is circular?
Why should I prototype a function?
What are identifiers c?
Write a program to implement queue.