Computer Science, asked by inessaisabella, 1 year ago

How do I sort a struct in C programming?

Answers

Answered by Anonymous
1
hi dear here is the answer

The program output is also shown below.

* C program to accept N numbers and arrange them in an ascending order.

int i, j, a, n, number[30];

printf("Enter the value of N \n");

scanf("%d", &n);

printf("Enter the numbers \n");

for (i = 0; i < n; ++i)

scanf("%d", &number[i]);

for (i = 0; i < n; ++i)


hope it is helpful dear
mark me as brainlist
don't forget to follow me
Similar questions