help me with the code for data validation in C
i need for both integer type n character type data
i tried using the isalpha() n other functions from the ctype.h library
but i m not gettin the logica correctly
please help me out with this
thanks
Data validation in C?
The parameter should be inside the brackets ie
ch="A"
st="Lots of characters"
in=1234
boolean_result=ischar(ch)
boolean_result=isstring(st)
boolean_result=isnumeric(in)
Reply:use isdigit function instead of isalpha function for validation of two integers.
Reply:Not really clear what you are asking, but have you tried isdigit() ? Or isalnum() ?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment