• Home
  • Contact us
  • C programs
  • submit program
  • Follow us on pinterest

Errorless C

This website is for c programming tutorials online.By this website you can learn c programming online.There are many c programming topics and Other programs for practice.There are also some projects created in c programming.

Array sorting

By: adarshsojitra on 14:30
Share it Please
Tweet
PROGRAM BY: VIVEK PADALIYA

#include<stdio.h>
#include<conio.h>
void main()
{
int n[10],i,j,temp;
clrscr();

for(i=0;i<=5;i++)
{
printf("enter element no %d : ",i+1);
scanf("%d",&n[i]);
}
for(i=0;i<=5;i++)
{
for(j=i;j<=5;j++)
{
if(n[i]>n[j])
{
temp = n[j];
n[j] = n[i];
n[i] = temp;
}
}
}
printf("The sorted Array is : \n");
for(i=0;i<=5;i++)
{
printf("%d\n",n[i]);
}
getch();
}
Email This BlogThis! Share to X Share to Facebook Share to Pinterest

C programming

  • First Program in C
  • About C programming
  • Compilers for C
  • Comments in C
  • Datatypes and variables
  • Rules to create Variables in C
  • Operators and Expressions
  • backslash characters
  • printf function
  • scanf function
  • getchar function
  • putchar function
  • gets function
  • puts function
  • Storage class specifiers
  • Constants in C
  • if else condition
  • Else if condition
  • Switch case
  • While loop
  • for loop
  • do while loop
  • break statement
  • Continue statement
  • goto statement
  • Arrays in C
  • Strings in C
  • User defined functions
  • Pointers in C
  • Structures in C
  • Recursion in C
  • File Handling in C
  • Preprocessors in C
  • Macros with arguments

Libraries in C

  • Math.h library
  • String.h library
  • ctype.h library
  • Limits.h library

Projects in C

  • 999999 HTML COLORS
  • Tower of hanoi
  • Volume and surface area
  • Library management system
  • Contacts management system
  • Real time calculator in C

Top

Designed By Templateism | Seo Blogger Templates
Powered by Blogger.