#include <iostream> void f(int x) { switch(x) { case 1:std::cout << 1; case default:std::cout << "Default"; case 2:std::cout << 2; } } int main() { f(1); f(2); f(3); return 0; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment