Array in Ascending Order

Write a Program “wap in C” and take Input in Array and Print IT in Ascending Order. 

Learn step by step Array in ascending order

Sort array in ascending order

void main()
int a[5],j,i,s=0;
printf(“\n Enter any element:- “);
for(j=0;j<5;j++) { scanf(“%d“, &a[j]); s=s+a[j];
for(i=0; i<s; i++)
for (j=0; j<5; j++)
if (a[j]==i)

printf(“\n %d“,a[j]);



Array in Ascending Order
Array in Ascending Order

Two dimensional array in c


Array in Ascending Order
Array in Ascending Order

You can learn here about every statement in this program Through this link:-

Pattern Program    Graphics Program

If you want To read about C function like why use scanf();, frintf();, getch() click here…


C program to draw a square using graphics (clickHere)


Note:- Maybe sometime above code doesn’t get user-friendly output, in codeblock ‘or’ any other EDITOR, All of C & C++ program tested in DOS compiler Turbo C.

Also Read

Types of functions in C    Read Here

I hope you will understand better if you study at M.U, in the exam of M.U you know how important this “C program Array in ascending order. So please don’t forget to give your valuable feedback. Go in the comment section and Give us some feedback about it. C Array in ascending order or My website.

Our team check your every Comment per day Because your one feedback helps us in growing Thesmolt

I request you if you have any doubt or question regarding our site, then please don’t hesitate. We always waiting for your Suggestion.

Note:- If you want to Download This article’s in PDF form, then simply go (Top or Bottom of) Right corner and click on the PRINT icon, and it’s saved as a PDF of Array in ascending order

String array in c

For further questions, you can contact us Via mail [email protected]  otherwise, Our Help Page and Contact us Page, which is included below. I hope I’ll able to say all the possible ways to reach us. Or Download My Android Application Below Download Button.

thesmolt App

Don’t forget to give your valuable feedback….

Thank You



Leave a Reply