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
Is main an identifier in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Can you apply link and association interchangeably?
Explain what is the difference between functions getch() and getche()?
What is the size of structure pointer in c?
Is main is user defined function?
What is the difference between a free-standing and a hosted environment?
What is graph in c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Why isnt there a numbered, multi-level break statement to break out
What are header files in c?
What is array of structure in c?
can anyone please tell about the nested interrupts?
How do you define a function?
Explain the difference between getch() and getche() in c?