What does Go integer division print?
fmt.Println(5 / 3)Answer & explanation
Answer: 1
With integer operands, division truncates toward zero.
Practice primitive arithmetic with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
fmt.Println(5 / 3)Answer: 1
With integer operands, division truncates toward zero.