ЁЯУв Too many exams? DonтАЩt know which one suits you best? Book Your Free Expert ЁЯСЙ call Now!


    Question

    In C, what will be the output of the following code?

    int a = 5; printf("%d", a++);
    A 4 Correct Answer Incorrect Answer
    B 5 Correct Answer Incorrect Answer
    C 6 Correct Answer Incorrect Answer
    E Error Correct Answer Incorrect Answer

    Solution

    a++ is a post-increment operator; the current value is used first, then incremented.

    Practice Next
    More C Programming Questions
    ask-question