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

10, 14



Your comments will be displayed only after manual approval.