Sometimes it is necessary (or simply convenient) to present array items in the form of items of another type. The following code example shows dangerous and safe type conversions: Continue reading
array
In C and C++ arrays are not passed by value
The fragment is taken from the game ‘Wolf‘. The code contains an error that analyzer diagnoses in the following way: V511 The sizeof() operator returns size of the pointer, and not of the array, in ‘sizeof (src)’ expression.