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 / ravi
answer a
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is a semicolon (;) put at the end of every program statement?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What are the types of variables in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is c programing language?
can any one tel me wt is the question pattern for NIC exam
Where we use clrscr in c?
Where is c used?
List some basic data types in c?
What is the need of structure in c?
What is the difference between c &c++?
what is uses of .net
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Without Computer networks, Computers will be half the use. Comment.