Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize 2d array c++ memset

int arr[10][20] = {0};  // easier way
// this does the same
memset(arr, 0, sizeof arr); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #array #memset
ADD COMMENT
Topic
Name
6+2 =