Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int n = -5;
    int m = n % 2;
    printf("%d\n", m);
    }
    1. -1
    2. 1
    3. Compilation Error
    4. Runtime Error
    5. None of these
Correct Option: A

-1



Your comments will be displayed only after manual approval.