Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ initialize array 1 to n

std::vector<int> arr(SIZE);
for (int i = 0; i < SIZE; i++)
{
    arr[i] = i;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #array
ADD COMMENT
Topic
Name
8+3 =