How is use pointer in the example? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
4th May 2018, 6:44 AM
Wesam
Wesam - avatar
2 Answers
+ 9
Is this from home work? There is quite a bit missing from your example. One way would be to use new / delete. name *s = new name; //do stuff delete s;
4th May 2018, 7:04 AM
jay
jay - avatar
0
sorry I forget types thank you very much
4th May 2018, 7:28 AM
Wesam
Wesam - avatar