As the first coding experience,i would like to share you a code for making a array in ascending order.Although its simple,lot of guys gets vulnerable with arrays.All of your code reviews will be highly appreciated! adios!


int main()
{
int array[5] = { 45,6,43,84,26 };

sort(array, array + 5);

for (int i = 0; i < 5;  ++i)
{
cout << array[i] << " ";
}

return 0;
}

Comments

Popular Posts