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 / ramlal bishnoi

d) compiler error

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is swift based on c?

638


What is strcmp in c?

596


Is anything faster than c?

585


what are # pragma staments?

1625


When should I declare a function?

623






What is the difference between array and linked list in c?

600


what is ur strangth & weekness

1819


What is the difference between #include

and #include “header file”?

552


difference between Low, Middle, High Level languages in c ?

1634


What is #pragma statements?

587


What are the 3 types of structures?

570


Explain what is the difference between functions getch() and getche()?

606


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

643


Is exit(status) truly equivalent to returning the same status from main?

585


Explain the use of 'auto' keyword

679