Mini-post: Ensuring The Input Entered is a Number in C

Okay, this is going to be a short one. "How can I be sure the input entered by user is a number in C?" In C++ or Python you can use a try or catch exception, but how about C? I was browsing this topic in Stackoverflow and some guy suggested atoi() or scanf() which will return the numeric value of a letter, but it was complicated (at least... Continue Reading →

Website Powered by WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started