[Solved] c++ fill call is creating an error [closed]


sizeof returns the size of the given type in number of chars, not the number of elements in the array (i.e. you have the wrong units). Therefore, ints+sizeof(ints) is incorrect, it should be ints + 5.

5

solved c++ fill call is creating an error [closed]