#include <stdio.h> int main() { char subject ; printf ("Enter your subject\n"); scanf ("%c", & subject ); switch (subject | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include <stdio.h> int main() { char subject ; printf ("Enter your subject\n"); scanf ("%c", & subject ); switch (subject

Why in switch case i am getting default output and why not case output?

11th Mar 2021, 7:47 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar
4 Answers
+ 2
your code is incomplete, show the complete the code.
11th Mar 2021, 7:53 AM
Rellot's screwdriver
Rellot's screwdriver - avatar
11th Mar 2021, 8:10 AM
Abhay
Abhay - avatar
+ 1
🏅Hÿđŕa 💠 Ďév➡️☯️▄︻̷̿┻̿═━一 You can copy code link and paste here. Your code may be in private now so it cant visible to others. you can add code or link in description place, so remove it from question place.
11th Mar 2021, 6:14 PM
Jayakrishna 🇮🇳
- 1
Open my profile coding kitty, you will see rd code that is complete code
11th Mar 2021, 7:57 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ - avatar