write a program to insert a number given sorted list by using insertion technique
Answers
Answered by
5
Explanation:
The program output is also shown below.
/* C Program to sort an array in ascending order using Insertion Sort */
int n, i, j, temp;
int arr[64];
printf("Enter number of elements\n");
scanf("%d", &n);
printf("Enter %d integers\n", n);
for (i = 0; i < n; i++)
scanf("%d", &arr[i]);
Similar questions
English,
2 months ago
Math,
2 months ago
Physics,
4 months ago
Political Science,
4 months ago
History,
10 months ago