• 2021-04-14
    有如下定义 struct Employee { char name[12]; int age; char sex; } emp[10],*p=std; 以下语句错误的是________。


  • scanf("%d",p->age);

    内容

    • 0

      以下结构体的定义语句中,正确的是______。? struct student {int num; char name[10];int age;}stu;|struct {int num; char name[10];int age;}student; struct student stu;|struct student {int num; char name[10]; int age;}; student stu;|struct student {int num; char name[10];int age;};stu;

    • 1

      有如下结构体定义,能够正确引用结构体的是()。 struct student { long num; char name[10]; char sex; int age; float score; }stu;

    • 2

      有如下类的定义,创建Employee对象错误的是() public class Employee{ private int age; private String name; public Employee(int age){ this.age = age; } public Employee(String name){ this.name = name; } public Employee(int age,String name){ this(age); this.name = name; } } A: Employee emp = new Employee(10); B: Employee emp = new Employee("Tom"); C: Employee emp = new Employee(); D: Employee emp = new Employee(10,"Tom");

    • 3

      有如下定义:struct{int num;char name[10];...以下对内嵌结构体成员的引用形式错误的是

    • 4

      有如下定义: struct student { int num; char name[20]; int age; }; struct student stu[30]; 下面输入语句正确的是()