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 / guruprasad
Compiler Error= Initializer Syntax Error in function main();
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is optimization in c?
Write a program to swap two numbers without using third variable in c?
Can a variable be both static and volatile in c?
Can you explain the four storage classes in C?
What is typedf?
What are the keywords in c?
Is there a way to jump out of a function or functions?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is local and global variable in c?
What is d'n in c?
how many key words availabel in c a) 28 b) 31 c) 32
Can main () be called recursively?
i have a written test for microland please give me test pattern
How can I insert or delete a line (or record) in the middle of a file?