单项选择题

有以下程序
#include<stdio.h>
main()
int i,sum;
for(i=1;i<6;i++)sum+=i;
printf("%d\n",sum);

程序运行后的输出结果是()。

A.随机值
B.0
C.15
D.16