单项选择题

有以下程序:
main()
{int a=0,b=0;
a=10; /*给a赋值
b=20; /*给b赋值*/
printf(“a+b=%d\n”,a+b);/*输出计算结果*/

程序运行后的输出结果是 ____

A.a+b=10
B.a+b=30
C.30
D.出错