What would be a practical example for the use of the pointer rather than the variable? Thanks. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What would be a practical example for the use of the pointer rather than the variable? Thanks.

18th Jul 2017, 5:00 PM
Richard Appleton
Richard Appleton - avatar
3 Antworten
0
Can be used for call by reference which is used to manipulate the variables by functions in main.
18th Jul 2017, 5:06 PM
G.S.N.V. Suraj
G.S.N.V. Suraj - avatar
+ 1
you can access address of variable
18th Jul 2017, 5:03 PM
‎ ‏‏‎Anonymous Guy
0
For any data structure which requires reference to other nodes. For example: Linked Lists and Binary Trees
18th Jul 2017, 5:15 PM
S C