单项选择题

阅读程序,分析输出结果是( )。 
#include
void main( )

int a=2,b=-1,c=2;
if(a)
if(b<0) c=0;
else c++;
printf("%d",c);
}

A.1
B.0
C.2
D.3