• 2022-06-19
    有如下定义struct data{ int x;int y;} test1={10,20}, test2;则以下赋值语句中错误的是( )。
    A: test2=test1;
    B: test2.x=test1.x;
    C: test2.x=test1.y;
    D: test2={30,40};