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
Which header file is essential for using strcmp function?
How to implement a packet in C
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Explain what are the standard predefined macros?
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
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Is boolean a datatype in c?
When should you use a type cast?
Explain why c is faster than c++?
Write a progarm to find the length of string using switch case?
What is the advantage of a random access file?
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
What does the function toupper() do?
Explain About fork()?
What is meant by errors and debugging?