In C, the ________ operator is used to find the remainder of a division operation.
- Modulus (%)
- Division (/)
- Exponentiation (^)
- Multiplication (*)
The correct option is (a) Modulus (%). The modulus operator (%) in C is used to find the remainder of a division operation. For example, 10 % 3 equals 1 because the remainder when 10 is divided by 3 is 1.
Loading...
Related Quiz
- You're optimizing a program for memory usage. What considerations would you take into account when deciding between using character arrays and string literals?
- The function ________ is used to write data to a binary file.
- In C, the base address of an array arr can be accessed using ________.
- When declaring a string literal in C, which character is automatically appended at the end?
- What is the return type of the fread function in C?