engineering computer science MCQ #2118

What is the result of `5 / 2` in C?

engineering computer science MCQ #2118

  1. Question 1

    Q1. What is the result of `5 / 2` in C?

    • A) 2.5
    • B) 2
    • C) 3
    • D) Compilation Error

    Answer: 2

    Explanation: Integer division truncates the decimal part, resulting in 2. NET computer science MCQs often test this core concept.