• 2022-06-03
    ‍以下能正确定义变量a、b和c并为其赋值的语句是​
    A: int a=5,b=5,c=5;
    B: int a=5;b=5;c=5;
    C: int a,b,c=5;
    D: a=5,b=5,c=5;
  • A

    内容

    • 0

      ​以下能正确定义整型变量a、b、c并为其赋初值5的语句是( )‎ A: int a=b=c=5; B: int a,b, c=5; C: int a=5,b=5,c=5; D: a=b=c=5;

    • 1

      以下能正确定义整型变量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

    • 2

      以下能正确定义整型变量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

    • 3

      以下能正确定义整型变量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

    • 4

      2.以下能定义整型变量a、b和c,并为它们确定初值5的语句是( )。 A: int a=b=c=5; B: int a,b,c=5; C: int a=5,b=5,c=5; D: a=b=c=5;