What will be the output of the following C code? [code] #include <stdio.h> int main() { int a = 1, b = 1; switch

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int a = 1, b = 1;
        switch (a)
        {
           case a*b:
              printf("yes ");
           case a-b:
              printf("no\n");
              break;
        }
    }
A. yes
B. no
C. Compile time error
D. yes no
 

Tìm kiếm

Back
Top