Question: C PROGRAMING, POINTERS My code does not seem to work and i dont know how to fix it Write a function to split the integer
C PROGRAMING, POINTERS
My code does not seem to work and i dont know how to fix it
Write a function to split the integer and fractional part of a real number. call the function in main. void splitfloat( double x, int *intpart, double *fracpart ); Where x is the real number to be split (-10000 x<10000), * intpart and * fracpart are the integer part and fractional part of the real number x to be split respectively. [Example of input]: 4.118 [Sample output]: The integer part is 4 The fractional part is 0.118
My code:
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
