# 数组排序

定义一个包含5个整型元素(1, 5, 3, 92, 6)的数组,将数组元素按照由 小到大的顺序输出

## template

```cpp
#include <stdio.h>
#define N (int)5
int main()
{
	int a[N] = {1,5,3,92,6};
	int tmp;
	for (int i = 0; i < N-1; i++)
	{
		for (int j = 0;j < N-1-i;j++)
		{
			if (a[j] > a[j+1])
			{
				tmp = a[j];
				a[j] = a[j+1];
				a[j+1] = tmp;
			}
		}
	}
	for (int i = 0; i < N; i++)
	{
		printf("%d ",a[i]);
	}
	return 0;
}
```

## 答案

```cpp

```

## 选项

### A

```cpp

```

### B

```cpp

```

### C

```cpp

```