Programming in C MCQ - Find the Output

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
x++ compares the old value 3 with 3, which is false, then makes x equal to 4. ++x next makes x equal to 5 before comparing; 5 > 4 is true, so B5 is printed.
Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:
12 > 8 is true and 8 % 4 is zero, so a becomes 12 - 8 = 4. The final ladder finds a == c and prints Y.
Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free