I have two variables:
int a;
uint b;
I also have an array:
float c[100];
If I want to pass a+b
as the index of array c
such that:
c[a+b] = 10.0;
For safety purpose, we should make sure a+b
returns uint
. Does it return unit
?
Should I force its return value to be an uint
?