Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sort array c++

//me
int arr[6] = {3,1,4,0,5,2};
sort(arr, arr+6);

//arr is now {0,1,2,3,4,5}
 
PREVIOUS NEXT
Tagged: #sort #array
ADD COMMENT
Topic
Name
7+2 =