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 / srikanth

ACB

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

while initialization of array why we use a[][2] why not a[2][]...?

1960


Explain the difference between call by value and call by reference in c language?

754


What are data types in c language?

695


What are file streams?

664


How do you initialize pointer variables?

707






What is a wrapper function in c?

698


What is void main ()?

684


What are the string functions? List some string functions available in c.

691


What does c in a circle mean?

667


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1623


Why does not c have an exponentiation operator?

705


How can I swap two values without using a temporary?

703


Explain low-order bytes.

714


How we can insert comments in a c program?

731


What is bubble sort in c?

731