You do check first whether a char is a digit or not. The assignment expects you to test for alpha or not.
Then you do check whether the char is alpha or not. You were supposed to test whether an alpha (and only alpha) is upper or not.
[Edit] Totally missed that bad scoping.
Last edited on
woohooo I messed up badly.....
yes yes I got my fault
thanks guys you are really lifesaver.....
@JLBorges Thanks very very much.... your code is much much better(of course)
@MiiNiPaa errr......... the format for code i use is ANSI foospace... I compiled the code as it is in your formt but error is elseware
@keskiverto yes... my mistake I mis interpreted it
Thank You all