In if statement, the statement before else may omit ";". ( )
A: 正确
B: 错误
A: 正确
B: 错误
举一反三
- In if statement, the statement before else may omit ";". ( )
- "On June 1st fixed pay to …" is a statement indicating Demand Bill. A: 正确 B: 错误
- a为非零时显示x,为零时显示y。能完成该功能的语句是 ( ) 。 A: if(a) printf("%d ",x); else printf("%d ",y); B: if(!a) printf("%d ",y); else printf("%d ",x); C: if (a!=0) printf("%d ",x); else printf("%d ",y); D: if(a==0) printf("%d ",y); else printf("%d ",x); E: if(a) printf("%d ",x); else; printf("%d ",y);
- 以下哪句不能编译? A: if ( a==b ) else printf("no"); B: if ( a==b ); else printf("no"); C: if ( a==b ) {} else printf("no"); D: if ( a==b ) printf("no");
- If you feel the size is too small, you may say "Can I have a size larger?" A: 正确 B: 错误