单项选择题

假定所有变量均已正确说明,下列程序段运行后X的值是( )。
a=b=c=0; x=12;
if(!a)x--;
else x=5;
if(c)x=3;
else x=4;

A.11
B.4
C.12
D.3