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
Why can’t constant values be used to define an array’s initial size?
Is int a keyword in c?
Is c is a middle level language?
explain how do you use macro?
Explain the advantages and disadvantages of macros.
What is openmp in c?
How many types of functions are there in c?
What is the method to save data in stack data structure type?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
How can I write functions that take a variable number of arguments?
plz let me know how to become a telecom protocol tester. thank you.
What is the right way to use errno?
Write a program to reverse a linked list in c.
Why isnt there a numbered, multi-level break statement to break out
What are the different types of constants?