Home / C Programming / Expressions :: Discussion

Discussion :: Expressions

  1. What will be the output of the program?

    #include
    int main()
    {
        int i=3;
        i = i++;
        printf("%d\n", i);
        return 0;
    }
  2. A.

    3

    B.

    4

    C.

    5

    D.

    6

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    #include
    int main()
    {
        int i=3;
        i = i++;
        printf("%d\n", i);
        return 0;
    }


Be The First To Comment