单项选择题

以下程序段运行后的输出结果是( )。 int a=0,b=0,c=0,d=0; if(a=1) b=1; c=2; else d=3; printf("%d,%d,%d,%d",a,b,c,d);

A、编译有错
B、1,1,2,0
C、0,0,0,3
D、0,1,2,0