Give 5 type checks that should be made for the following c++ statement:
NOTE: assume x, f,v and i are all declared and in scope.
- compatibility check (compile time)
- v[i] is a valid array element. (compile time) (i.e. (i is not a float or something))
- bounds checking for the array v[i]
NOt sure what other checks I would be able to do? Seems like all possible. any help is greatly appreciated. Thanks.