For Problem 1, is it valid to have floating point numbers (eg, 12.4) on either side of a modulus operator (%)?
Yes, even though this isn’t allowed by the C compiler, it is valid in the “language” used in this problem because the rules don’t state that it shouldn’t be. Please don’t be tempted to add verification rules beyond what is stated in the problem. You are only making the problem harder than I intended. 4.
Related Questions
- I want to exchange data with an external source, but the problem is that floating point values are passed as little-endian (reverse storage order). How can I set things right in my program?
- Can the remainder/modulus operator be used with floating point operands?
- What is the floating point (FDIV) problem with the Pentium?