Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

array length c++

// array::size
#include <iostream>
#include <array>

int main ()
{
  std::array<int,5> myints;
  std::cout << "size of myints: " << myints.size() << std::endl;
  std::cout << "sizeof(myints): " << sizeof(myints) << std::endl;

  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #array #length
ADD COMMENT
Topic
Name
1+4 =