I am just starting out in C. Can some one help me out? I need a statement that will test an entered number to determine if it is an integer or a float. I would appreciate if someone could at least point me in the right direction.
Thanks, Ed B.
This is a discussion on test integer, float or not within the C Programming forums, part of the General Programming Boards category; I am just starting out in C. Can some one help me out? I need a statement that will test ...
I am just starting out in C. Can some one help me out? I need a statement that will test an entered number to determine if it is an integer or a float. I would appreciate if someone could at least point me in the right direction.
Thanks, Ed B.
You can decide what type of data is inputted. Just specify it in your scanf().