quote:
Originally posted by Madman
To output a interger as the number value using printf you'd use.
What i meant is that i heard that there is a way to do that whole thing in one printf statement
Damn ..... why didnt i write it down
Neways ill try that nAscii idea of yours tho im not that hopeful .... if anyone knows about it then help me .....
I got an idea like if i tell the compiler that a variable ( m ) .....
code:
if (m >= 'A' || m >= 'Z')
printf("It is a capital letter");
Will that work
I know i can use the conversion type functions calling "ctype.h" and the using functions like isalpha
, isupper
and/or islower
..... but thats a different approach cause the question says that i should use the ascii values
EDIT:
quote:
Originally posted by Madman
P.S Dont worry if im wrong i havnt been coding with c for very long either
I got that a long time back
thanks but keep trying .....