void bubblesort(int array[],int size)
{
int tmp ,i,j;
for(i = 0;i
for(j=0;j < size;j++)
if(array[i] < array[j])
{
tmp = array[i];
array[i] = array[j];
array[j] = tmp;
}
}
This blog will cover all important aspects of 'C' 'C++', 'Data Structures in C' and other Technical stuffs. In this blog you will find good C Interview Questions Answers. I will be posting both multiple choice and subjective type C interview questions and answers. Tutorials will be posted from time to time that will focus on problem solving.
Saturday, April 14, 2012
Simple Bubble sort function in C Language Program
Labels:
c,
c language,
programming,
sorting
Subscribe to:
Post Comments (Atom)
There is printing error in line 3. Please check that.
ReplyDeleteView this : Selection sort program in c