[ create a new paste ] login | about

Link: http://codepad.org/FAvbjdHz    [ raw code | output | fork ]

C, pasted on Dec 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int mysort(int a[1000],int b)
{
	int i,j,t;
	for(i=0;i<b;i++)
	{
		for(j=i;j<b;j++)
		{	
			if(a[i]>a[j])
			{
				t=a[i];
				a[i]=a[j];
				a[j]=t;
			}
		}
	}
}


Output:
1
2
In function `_start':
undefined reference to `main'


Create a new paste based on this one


Comments: