struct {

  int len;

  char *str;

} *p;

 

++p->len

len的值加1

 

*p->str

读取指针str所指向的对象的值

 

*p->str++

先读取指针str指向的对象的值,然后再将str加1

 

(*p->str)++

将指针str指向的对象的值加1

 

*p++->str

先读取指针str指向的对象的值,然后p加1

 

 

相关文章:

  • 2022-01-09
  • 2021-07-28
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2018-05-15
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-02-06
  • 2022-01-08
  • 2022-02-06
  • 2021-08-16
  • 2021-12-15
相关资源
相似解决方案