C Programming and Technical Programming Program

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

Options
1) rem = 3.14 % 2.1;
2) rem = modf(3.14, 2.1);
3) rem = fmod(3.14, 2.1);
4) Remainder cannot be obtain in floating point division.

Read Solution (Total 4)

C Other Question

Is the following statement a declaration or definition?
extern int i;

Options
1) Declaration
2) Definition
3) Function
4) Error
What does static variable mean?