What happens if you use the modulus operator with two floating point values?

What will be an ideal response?

The code will not compile. The modulus operator only works on integers.

Computer Science & Information Technology

You might also like to view...

When you have minimal changes in the workbook, or want to see changes at a glance, you would use:

A) onscreen highlighting. B) onscreen low lighting. C) in file highlighting. D) no highlighting.

Computer Science & Information Technology

Consider the following function:

void reverse(char * string1, const char * string2) { int stringsize = sizeof(string1)/sizeof(char); *(string1 + stringsize – 1) = '\0'; string1 = string1 + stringsize – 2; for (; *string2 != '\0'; --string1, ++string2) { *string1 = *string2; } } What method does the function use to refer to array elements? a) array/subscript notation b) array/offset notation c) pointer/subscript notation d) pointer/offset notation

Computer Science & Information Technology