以下能正确定义整型变量a,b和c并为它们附初值5的语句是()(5.0)
A: int a= 5,
B: a = 5, b = 5, c = 5
C: int a = 5, b = 5, c = 5
D: int a = b = c = 5
A: int a= 5,
B: a = 5, b = 5, c = 5
C: int a = 5, b = 5, c = 5
D: int a = b = c = 5
举一反三
- 以下能正确定义整型变量a,b和c并为它们附初值5的语句是 A: int a = b = c = 5 B: int a, b, c = 5 C: a = 5, b = 5, c = 5 D: int a = 5, b = 5, c = 5
- 以下能正确定义整型变量a,b和c并为它们附初值5的语句是 A: int a = b = c = 5 B: int a, b, c = 5 C: a = 5, b = 5, c = 5 D: int a = 5, b = 5, c = 5
- 能正确定义整型变量a和b并为它们赋初值的语句是( )。 A: int a=5;b=5; B: int a;b=5; C: int a=5,b=5; D: int a=b=5;
- 能正确定义整型变量a和b,并为它们赋初值5的语句是( )。 A: a=b=5; B: int a=b=5; C: int a,b=5; D: int a=5,b=5;
- 能正确定义整型变量a和b,并为它们赋初值5的语句是( )。 A: a=b=5; B: int a=b=5; C: int a,b=5; D: int a=5,b=5;