Is it important to use Pointers and Addresses instead of variable itself in C++? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Is it important to use Pointers and Addresses instead of variable itself in C++?

Can someone help me understand why pointers is important in C/C++? I started Java programming so I still have no knowledge why pointers are important, but I do know how to use them. Thank you in advance.

28th Jun 2017, 2:33 PM
Bryan Cayabyab
Bryan Cayabyab - avatar
1 Antwort
0
if you need dynamic memory allocation, which is obvious, then it is compulsory to learn the concept. languages like Java and c# also have pointers but with different names and they are managed by language runtimes automatically thanks to GC. you can use pointers in c# by turn on unsafe code option
28th Jun 2017, 3:21 PM
Keshave Jat
Keshave Jat - avatar