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
Is swift based on c?
What is strcmp in c?
Is anything faster than c?
what are # pragma staments?
When should I declare a function?
What is the difference between array and linked list in c?
what is ur strangth & weekness
What is the difference between #include
difference between Low, Middle, High Level languages in c ?
What is #pragma statements?
What are the 3 types of structures?
Explain what is the difference between functions getch() and getche()?
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
Is exit(status) truly equivalent to returning the same status from main?
Explain the use of 'auto' keyword