New course! Every coder should learn Generative AI!
Try a free lesson+ 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();
3 Answers
+ 4
https://code.sololearn.com/cLheKuoZD23h/?ref=app
This is simple program used to swap two numbers using pointers. Hope this helps you
+ 2
->
+ 2
use arrow to access pointer props/methods