Hello everyone 💚 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello everyone 💚

In C Language...if I define a variable integer and I input inside it a character...it make problem. So, How Can I except this error????

6th Apr 2019, 10:09 AM
Zero
Zero - avatar
2 Answers
0
://Please attach your source code so community can help you
6th Apr 2019, 8:02 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
Shudarshan Rai 👑 for example : main() { int m; scanf ("%d",&m); } Now if the user input a characters instead of a number...the program will be failed completely So,how can I except this error
7th Apr 2019, 1:25 PM
Zero
Zero - avatar