Computer Science, asked by purnikumari096, 4 months ago

write a program to insert a number given sorted list by using insertion technique

Answers

Answered by vivekbt42kvboy
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