Startup and Tech
Tuesday 2 June 2020
C Program to sort one dimensional array in ascending and descending order
Program
#include
void main() { int n; printf("enter the size of array: \n"); scanf("%d",&n); int a[n]; printf("enter the %d numbers\n",n); int i=0; for(i=0;i
a[k]) { temp = a[j]; a[j] = a[k]; a[k] = temp; } } } int l=0; for(l=0;l
=0;m--) { printf("%d\n",a[m]); } getch(); }
Also Read who developed C language -
https://www.techrcoding.com/2020/06/c-language.html
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment