Incrementing an array value
3
8
2
5
7
1. c[(int)(0.4*10)]=6
2. c[(int)(0.4*10)]++
3. c[(int)(0.4*10)]=7
b=0.4
b*10.0 = 4.0
(int)(b*10)=4
c[(int)(b*10.0)]++;
Previous slide
Next slide
Back to first slide
View graphic version