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