Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In such a variant.
sizeof (mas) / sizeof(mas[0])
But don't do that
std::size(mas)
or
But is better to use in general. It has a size method. std::array
You can stop like this a little under the 11th standard
#include < array > // remove spaces
using namespace std;
array i_arr;
cout << "i_arr size: " << i_arr.size() << endl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question