Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to create array with not constant size in cpp

size_t n;
std::cin >> n;
auto arr = std::make_unique<int[]>(n);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #array #constant #size #cpp
ADD COMMENT
Topic
Name
9+1 =