+ 1

Calling a function from a pointer? C++

I am completely stumped on this one... can anyone help and explain? Student st; Student *stPtr = st; stPtr (what goes here?) printAge();

9th Dec 2020, 9:16 AM
Christian Baldonado
Christian Baldonado - avatar
4 ответов
+ 2
->
9th Dec 2020, 9:19 AM
durian
durian - avatar
+ 2
use arrow to access pointer props/methods
9th Dec 2020, 9:20 AM
durian
durian - avatar