• 2022-06-17 问题

    假设有如下结构类型及结构变量: struct SDate { int year; int month; int day; } birthday; struct SDate *p = &amp;birthday;<br/>则通过指针p给它指向的结构的year成员赋值为2025的语句是( ) A: p.year = 2025; B: p-&gt;year = 2025; C: (*p)-&gt;year = 2025; D: *(p-&gt;year) = 2025;

    假设有如下结构类型及结构变量: struct SDate { int year; int month; int day; } birthday; struct SDate *p = &amp;birthday;<br/>则通过指针p给它指向的结构的year成员赋值为2025的语句是( ) A: p.year = 2025; B: p-&gt;year = 2025; C: (*p)-&gt;year = 2025; D: *(p-&gt;year) = 2025;

  • 1