0

How to make sure the data(float) in c is numeric

If people key in alphabet how to show that this is an error?

21st Sep 2020, 3:25 AM
wanyen
wanyen - avatar
1 Respuesta
+ 5
This will help you. You can check easily Entered input is float int or string for string u need to add logic this code is for float and int you can see program https://stackoverflow.com/questions/20068234/c-how-to-check-if-the-number-is-integer-or-float
21st Sep 2020, 4:32 AM
A S Raghuvanshi
A S Raghuvanshi - avatar