Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

ABC is correct answer, because in first condition switch(0)=\ then it prints the character "A" ,then its break. in next condition switch(1)=0 then its prints the character "B" . In final condition switch(2)=,it does not match any case value so default condition is executed that means character "C" will print, so the final answer is ABC

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s a signal? Explain what do I use signals for?

1050


how to capitalise first letter of each word in a given string?

1867


What are actual arguments?

1044


What is the 'named constructor idiom'?

1031


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3282


What does emoji p mean?

1045


How do I copy files?

997


Not all reserved words are written in lowercase. TRUE or FALSE?

1176


Write a code to generate divisors of an integer?

1004


What is %g in c?

1017


Can a file other than a .h file be included with #include?

1098


List the difference between a "copy constructor" and a "assignment operator"?

957


What is the need of structure in c?

1047


What is the advantage of c?

1047


What is variable declaration and definition in c?

855