Home > Back-end > C language array problem, bosses
C language array problem, bosses
Time:12-09
1 use the rand function to produce n integers between living [10], choose a prime number and press from small to large, the order of the output (n<15) 2 have eight elements of an array, the former three elements by moving the string to the three position, if the initial data is: 1 2 3 4 5 6 7 8 without increasing array, also does not increase the memory cell array, by moving the array element array change for: 4 5 6 7 8 1 2 3 3 in one of the array in ascending order to insert a number, and inserted after the array elements in ascending order, still known ascending array {1, 2, 4, 6, 8, 9, 12, 15, 149, 156},
Emmmmm didn't listen to in class is my fault, but is about to hand in your homework in the afternoon, hoping to help the bosses