简体   繁体   English

C ++指针语法->

[英]C++ Pointer Syntax ->

I was trying to understand what a->b referred to and I was able to understand it refers to 我试图理解a-> b指的是什么,我能够理解它指的是什么

(*a).b

where a is a pointer. 其中a是指针。 What does a->b->c mean in those terms - ie is it (*((*a).b)).c? a-> b-> c在这些术语中是什么意思-即(*((**)。b))。c是什么?

是的, a->b->c等效于(*(*a).b).c ,等效于(*((*a).b)).c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM