Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to initialize vector in c++ with all elements 0

 vector<int> arr(10,0);
 
PREVIOUS NEXT
Tagged: #initialize #vector #elements
ADD COMMENT
Topic
Name
6+6 =