C program for bubble sort, C/C++ Programming

C program for bubble sort:

void main()


int i,j,k,a[10],n;


printf("How many values you want to enter\n");




 printf(" %d no?\n",i+1);



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



                  if (a[j]>a[j+1])

                    { k=a[j+1];





 for(i=0;i<=n-1;i++) printf("%d\n",a[i]);



Posted Date: 10/18/2012 6:29:56 AM | Location : United States

Related Discussions:- C program for bubble sort, Assignment Help, Ask Question on C program for bubble sort, Get Answer, Expert's Help, C program for bubble sort Discussions

Write discussion on C program for bubble sort
Your posts are moderated
Related Questions
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

What is conversion constructor? explain it .

Greatest Common Divisor (GCD) - The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves intege

How much does it cost to complete a C++ assignment that is 80% finished??

I have an assignment , can I send it

C Program for EVEN & ODD NO IN ANY MATRICES #include stdio.h> #include conio.h> void main() {           int a[100][100];           int i=0,j=0,r,c,even=0,odd=0;

You are going to write a function that computes the total interest charged on a credit card before it is paid off. List all the inputs the function will need.

#write a program that counts the number of occurances of the string in the n-th padovan string p(n)

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci