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
How can I open files mentioned on the command line, and parse option flags?
How can variables be characterized?
When should a type cast not be used?
What is the best way to store flag values in a program?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
Why does the call char scanf work?
What is %s and %d in c?
What is ambagious result in C? explain with an example.
What do you mean by dynamic memory allocation in c? What functions are used?
How can you read a directory in a C program?
What is the difference between mpi and openmp?
What is time null in c?
Write a program for finding factorial of a number.
What are volatile variables in c?
What do you mean by recursion in c?