What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-25 05:33:04
c++ how to sort numbers in ascending order
// With the first loop we take a number of the array(x). // With the second we take all the numbers in the array except x. // So we can compare each number with all the other numbers(9) int arr[] = { 9, 8 , 3 , 5, 1, 2 , 0 , 4, 10,6 }; // System I... Add solution -
Shell/Bash 2021-08-31 12:25:01
bash array
# create an array - just assign first value arrayname[0]='VALUE' # define an array declare -a arrayname=(element1 element2 element3) # get array element at index ${arrayname[2]} # get all array elements ${arrayname[@]} # get array length ${#arrayname... Add solution
Best helpers
Ranking is empty