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}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #sort #array
ADD COMMENT
Topic
Name
3+1 =