+ 1
Code to Bubble sort
6 ответов
+ 5
int array[10]; // you need to fill it
unsigned i, j, n;
for(i = 0; i < 9; ++i){
for(j = i; j < 9; ++j){
if(array[j + 1] < array[j]){
n = array[j];
array[j] = array[j + 1];
array[j + 1] = n;
}
}
}
+ 4
depends
const int * means a pointer which you can't change the value it points to
int * const means you can't change the address, but you can change the value
+ 4
yes ~ swim ~ , I'll correct it ^^ thanks for the notice !
+ 3
In which language ?
+ 3
Using which data structure ?
std::vector ? array ?
0
what is const pointer?