Skip to content

Instantly share code, notes, and snippets.

@mahmmoudkinawy
Created November 11, 2020 18:40
Show Gist options
  • Save mahmmoudkinawy/52f15d17106e2e4528d495f3c21fbcc2 to your computer and use it in GitHub Desktop.
Save mahmmoudkinawy/52f15d17106e2e4528d495f3c21fbcc2 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int arr[] = {10,20,-3,5,6,7,9};
int size = sizeof(arr) / sizeof(arr[0]);
sort(arr,arr+size);
cout<<"Array After Sorting : ";
for(int i= 0 ; i < size ; i++)
{
cout<<arr[i]<<" ";
}
cout<<endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment