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

5



Your comments will be displayed only after manual approval.