+ 6
What is the output of this code?
#include <stdio.h> int main() { int i=0; switch(i){ case '0': printf("Solo"); break case '1': printf("Learn"); break; default: printf("SoloLearn"); } return 0; }
2 Answers
+ 2
Well, since these cases are unreachable, it will skip to the default label and will output SoloLearn
+ 4
Error, because int is checked as char