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

Why enum is used in c?

524


Explain the process of converting a Tree into a Binary Tree.

2098


Explain what is the stack?

634


Explain a pre-processor and its advantages.

626


What is 1f in c?

1833






Differentiate between null and void pointers.

627


Explain can you assign a different address to an array tag?

642


What is meant by initialization and how we initialize a variable?

581


What is mean by data types in c?

549


pierrot's divisor program using c or c++ code

1724


Which is more efficient, a switch statement or an if else chain?

575


What are types of functions?

561


How can I sort more data than will fit in memory?

624


What is boolean in c?

603


What is the difference between struct and union in C?

568