**Division Truncation Behavior** What is the decimal value stored in res…
**Division Truncation Behavior** What is the decimal value stored in res ? reg [3:0] res; initial begin res = 7 / 2; end
- 3.5
- 3
- 4
- 0
Correct answer
B. 3
Explanation
Integer division in Verilog discards any fractional remainder and truncates toward zero. $7 / 2$ yields 3 .