Define a primitive data type: Difference between revisions
Content added Content deleted
Line 975: | Line 975: | ||
println("$b * $f = $(b*f)\n") |
println("$b * $f = $(b*f)\n") |
||
println("a * b is 12. |
println("a * b is 12. So should get bounds error below:") |
||
# A bounds error here since a*b would overflow as 12: |
# A bounds error here since a*b would overflow as 12: |
||
arr[1] = b * a |
arr[1] = b * a |