Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int num = 4, k = 1;
    do {
    num = num++;
    k++;
    } while (k != 4);
    printf("%d\n", num);
    }
    1. 1
    2. Undefined behaviour
    3. 2
    4. 3
    5. 4
Correct Option: E

4



Your comments will be displayed only after manual approval.