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


Please Help Members By Posting Answers For Below Questions

Do you know the purpose of 'register' keyword?

802


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.

1816


What functions are in conio h?

862


Why is it important to memset a variable, immediately after allocating memory to it ?

1753


Can you please explain the difference between syntax vs logical error?

892






How do you generate random numbers in C?

877


What is a program flowchart and how does it help in writing a program?

874


What is stack in c?

816


What is structure in c explain with example?

833


How does placing some code lines between the comment symbol help in debugging the code?

743


Why is it usually a bad idea to use gets()? Suggest a workaround.

1320


What is the difference between NULL and NUL?

976


Why c is a mother language?

722


What is pointer in c?

932


Explain how can I avoid the abort, retry, fail messages?

788