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

What is a lvalue

809


How can you draw circles in C?

793


What is c system32 taskhostw exe?

739


Write a factorial program using C.

789


How can I delete a file?

778






What is pass by reference in c?

796


Does c have enums?

737


Write a program to print all permutations of a given string.

867


Explain what is the stack?

788


What does the message "automatic aggregate intialization is an ansi feature" mean?

860


Explain the advantages of using macro in c language?

713


Explain which function in c can be used to append a string to another string?

770


I have seen function declarations that look like this

737


What is the scope of static variables in c language?

780


Explain what are multibyte characters?

801