Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize all elements of vector to 0 c++

// Create a vector of size n with
    // all values as 10.
    vector<int> vect(n, 10);
 
PREVIOUS NEXT
Tagged: #initialize #elements #vector
ADD COMMENT
Topic
Name
7+5 =