Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- bool isSorted( const int[], int );// Prototype for this function
- bool isSorted( const int list[], int size ) {
- for ( int i = 1, next = 2; next <= size; i++, next++ )
- if ( list[ i ] > list[ next ] )
- return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement