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

-2 2



Your comments will be displayed only after manual approval.