1// array::size
2#include <iostream>
3#include <array>
4
5int main ()
6{
7 std::array<int,5> myints;
8 std::cout << "size of myints: " << myints.size() << std::endl;
9 std::cout << "sizeof(myints): " << sizeof(myints) << std::endl;
10
11 return 0;
12}
1unsigned int number_of_digits = 0;
2
3do {
4 ++number_of_digits;
5 n /= base;
6} while (n);