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
What is pre-emptive data structure and explain it with example?
What is a lookup table in c?
Why main function is special give two reasons?
Differentiate between Macro and ordinary definition.
What is #include stdio h and #include conio h?
Differentiate call by value and call by reference?
What is the use of in c?
can anyone please tell about the nested interrupts?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Why do we need arrays in c?
Which built-in library function can be used to match a patter from the string?
Why n++ execute faster than n+1 ?
What is the difference between c and python?
What is pragma c?
What is the difference between int main and void main in c?