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 / vijay r15

ans is c
But 1printing mistake in s1 all characters should be in caps

Any dbt mail to raj.vijay55@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which header file is essential for using strcmp function?

943


How to implement a packet in C

2398


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1859


Explain what are the standard predefined macros?

651


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

664






Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

603


Is boolean a datatype in c?

545


When should you use a type cast?

593


Explain why c is faster than c++?

575


Write a progarm to find the length of string using switch case?

1612


What is the advantage of a random access file?

639


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

644


What does the function toupper() do?

657


Explain About fork()?

646


What is meant by errors and debugging?

647