• 2021-04-14
    下面程序的运行结果___
    #include “stdio.h”
    int id=3;
    void main
    { int id=5;
    { int id;
    id=7;
    printf(“id=%d\n”, id );
    }
    printf(“id=%d\n”, id );
    }
  • id=7
    id=5

    举一反三

    内容

    • 0

      Use the following code to answer the following questions: int id = 0; cout &#91;< "ID: "; cin &#93;> id; if (id == 1) cout << "Janet"; else if (id == 2 || id == 3) cout << "Mark"; else if (id == 4) cout << "Jerry"; else cout << "Sue"; (1) The above code display ____when the id variable contains the number 2? (2) The above code display ____when the id variable contains the number 4? (3) The above code display ____when the id variable contains the number 3? (4) The above code display ____when the id variable contains the number 8

    • 1

      为表TEST中ID列添加主键约束的语法是() A: ALTER  TABLE  TEST  CHANGE( ID  INT  PRIMARY  KEY) B: ALTER  TABLE  TEST  ADD( ID  INT  PRIMARY  KEY) C: ALTER  TABLE  TEST  MODIFY( ID  INT  PRIMARY  KEY) D: ALTER  TABLE  TEST  ADD  CONSTRAINT PK  PRIMARY KEY (ID)

    • 2

      执行语句“a,b=1,1”后,以下结论正确的是( )。 A: id(a)、id(b)、id(1)各不相等 B: id(a)=id(b),但不同于id(1) C: id(a)=id(1),但不同于id(b) D: id(a)、id(b)、id(1)均相等

    • 3

      已知函数getStudent()定义为public Student getStudent(int ID),下列四个选项中可以与getStudent构成重载的方法是 A: private Student getStudent(int ID) B: public String getStudent(int ID) C: Student getStudent(String name) D: public Student get(int ID)

    • 4

      关于id选择器使用方法正确的是() A: #id B: id C: $id D: &id