单项选择题

若a的值为3时,下列程序段被执行后,c的值是( )。 int c = 1; if (a>0) if (a>3) c = 2; else c = 3; else c = 4;

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