char as[] = "\\0\0";
int i = 0;
switch( as[i++]) {case '\\' : printf("A");
case 0 : printf("B");
default : printf("C");

Answers were Sorted based on User's Feedback

Answer / srikanth


Is This Answer Correct ?    2 Yes 0 No

Answer / dishank

darpan can u plz explain me how does the answer AB comes...

Is This Answer Correct ?    0 Yes 0 No

Answer / darpan


Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

Differentiate b/w Modify and Update commands giving example.

1 Answers  

how to build a exercise findig min number of e heap with list imlemented?

0 Answers  

how write a addtion of two single dimensional array using of pointer in c language?

3 Answers   DRDO,

1) int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain the explain the output

2 Answers  

what does ‘Bus Error’ mean?

1 Answers   ABC,

1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?

3 Answers   Qualcomm,

what do structure language means?

3 Answers   Microsoft,

what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  

when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .

4 Answers  

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

3 Answers   ME,

How many ways are there to swap two numbers without using temporary variable? Give the each logic.

9 Answers  

what is the syallabus of computer science students in group- 1?

0 Answers