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

Vy Bùi

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int x = 97;
        switch (x)
        {
           case 'a':
              printf("yes ");
              break;
           case 97:
              printf("no\n");
              break;
        }
    }
A. yes
B. yes no
C. Duplicate case value error
D. Character case value error
 

Tìm kiếm

Back
Top