Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to convert malloc function to cpp

int *scratch = (int *)malloc(size * sizeof(int));

int* scratch = new int[size];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #malloc #function #cpp
ADD COMMENT
Topic
Name
1+2 =