Multiple choice softskills creativity

Output of the following? printf("%d",-5/-4);

  1. 1

  2. -1

  3. Error

  4. 0

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C, integer division truncates toward zero. -5/-4 = 1.25, which truncates to 1 (not -1). The printf with %d displays integer output. This is integer division, not floating-point.