What is the output of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the output of this code?

int main(){ int c=1; switch(c){ case 1: printf("1"); case 2: printf("2"); case 3: printf("3");}return 0; }

22nd Mar 2019, 1:42 PM
VIJAYKUMAR GHATTAD
2 Answers
+ 9
You can try running it in code playground to get the answer. Follow the community guidelines. https://www.sololearn.com/discuss/1316935/?ref=app
22nd Mar 2019, 1:45 PM
Arushi Singhania
Arushi Singhania - avatar
+ 1
Thank you
22nd Mar 2019, 1:47 PM
VIJAYKUMAR GHATTAD