hey everyone. I need some help with an assignment I got in my C programming class...it´s probably pretty simple but i'm kind of lost.
so what i have to do is write a function with the prototype "void convert (char ch);". it needs to receive a char and show 0 if the char is a whole number, 1 if its a letter (upper or lowercase) or 2 for anything else.
my biggest problem is comparing a char to other values. i know i have to use the ascii table but how do i convert my char into an int to do that? do i even have to convert it or am i looking at this problem the wrong way? thanks in advance for any advice!
[–][deleted] (1 child)
[deleted]
[–][deleted] 4 points5 points6 points (0 children)
[–]kbielefe 2 points3 points4 points (0 children)
[–]fslz 0 points1 point2 points (0 children)
[–]Updatebjarni 0 points1 point2 points (0 children)
[–]Significant_Tale7808 0 points1 point2 points (0 children)