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

1 3



Your comments will be displayed only after manual approval.