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);
}
Answer Posted / dishank
darpan can u plz explain me how does the answer AB comes...
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Do you know the purpose of 'register' keyword?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What functions are in conio h?
Why is it important to memset a variable, immediately after allocating memory to it ?
Can you please explain the difference between syntax vs logical error?
How do you generate random numbers in C?
What is a program flowchart and how does it help in writing a program?
What is stack in c?
What is structure in c explain with example?
How does placing some code lines between the comment symbol help in debugging the code?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is the difference between NULL and NUL?
Why c is a mother language?
What is pointer in c?
Explain how can I avoid the abort, retry, fail messages?