Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize an array in c++

int nums[100] = {0}; // initiallize all values to 0

int nums[5] = {1,2,3,4,5};

// type name[size] = {values};
Source by www.dummies.com #
 
PREVIOUS NEXT
Tagged: #initialize #array
ADD COMMENT
Topic
Name
2+4 =