单选题:Identify the **logical errors** in the following fragment of co
Identify the **logical errors** in the following fragment of code:
1. if ( gender == 1 )
1. printf( "Woman\n" );
1. else;
1. printf( "Man\n" ); @[C](1)
A. line 1
B. line 2
C. line 3
D. line 4
A.line 1
B.line 2
C.line 3
D.line 4
答案:C
1. if ( gender == 1 )
1. printf( "Woman\n" );
1. else;
1. printf( "Man\n" ); @[C](1)
A. line 1
B. line 2
C. line 3
D. line 4
A.line 1
B.line 2
C.line 3
D.line 4
答案:C