Login to ask a question from Arrays

Write a program in C to sort elements of an array in ascending order.

Write a program in C to sort elements of an array in ascending order.

#include 

void main()
{
    int arr1[100];
    int n, i, j, tmp;
    printf("\n\nsort elements of array in ascending order :\n ");
    printf("Input the size of array : ");
    fflush(stdout);
    scanf("%d", &n);
       printf("Input %d elements in the array :\n",n);
       for(i=0;i....
Show More
Previous Question Next Question
🔗

Similar Questions

From Arrays · C programming

View All
WhatsApp