main()
{
char as[] = "\\0\0";
int i = 0;
do{
switch( as[i++]) {case '\\' : printf("A");
break;
case 0 : printf("B");
break;
default : printf("C");
break;
}}
while(i<3);
}
Answers were Sorted based on User's Feedback
Answer / dishank
darpan can u plz explain me how does the answer AB comes...
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / lakshman
ABC is correct answer, because in first condition switch(0)=\ then it prints the character "A" ,then its break. in next condition switch(1)=0 then its prints the character "B" . In final condition switch(2)=,it does not match any case value so default condition is executed that means character "C" will print, so the final answer is ABC
Is This Answer Correct ? | 2 Yes | 5 No |
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What are global variables and explain how do you declare them?
Does c have class?
Why static variable is used in c?
Is boolean a datatype in c?
What does *p++ do? What does it point to?
1 1 12 21 123 321 12344231 how i creat it with for loop??
Give me basis knowledge of c , c++...
What are the 3 types of structures?
what is ur strangth & weekness
0 Answers Cognizant, LG Soft, NetEnrich,
what is develop in c language