i have modified my code a little bit, still doesn't validate correct. details as follows
int success;
int sum;
int SumOnlyWholeNums(float *ptr1, float *ptr2, int *ptr_sum);
int main(void)
{
float FL1 = 10.0f, FL2 = 5.0f;
int *ptr_sum;
float *ptr1;
float *ptr2;
ptr1 = &FL1;
ptr2 = &FL2...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.