i'm new to C. does anyone knows if the following syntax validate input data type ?
i'm trying to validate if the input - float/integer (a pointer that send to a function) is a float or an integer.......
if input is an integer....return the sum of two input
else....doesn't return
if (int isdigit(*ptr1)) || (int isdigit(*ptr2)) ...........seems doesn't work this way
thanks
i'm trying to validate if the input - float/integer (a pointer that send to a function) is a float or an integer.......
if input is an integer....return the sum of two input
else....doesn't return
if (int isdigit(*ptr1)) || (int isdigit(*ptr2)) ...........seems doesn't work this way
thanks