Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ sort

 int arr[]= {2,3,5,6,1,2,3,6,10,100,200,0,-10};
    int n = sizeof(arr)/sizeof(int);  
    sort(arr,arr+n);

    for(int i: arr)
    {
        cout << i << " ";
    }
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #sort
ADD COMMENT
Topic
Name
7+2 =