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
What does stand for?
How many levels of pointers can you have?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Is it better to use malloc() or calloc()?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is the meaning of 2d in c?
What is an example of structure?
What are nested functions in c?
How many types of operator or there in c?
Hai what is the different types of versions and their differences
What are the types of macro formats?
What is the use of define in c?
What is the right type to use for boolean values in c? Is there a standard type?
What are the types of type specifiers?
Are c and c++ the same?