Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ allocate dynamic with initial values

int length = 50;
int *array = new int[length]();
// returns 50 length array of 0
 
PREVIOUS NEXT
Tagged: #allocate #dynamic #initial #values
ADD COMMENT
Topic
Name
6+8 =