Anyone knows how to clearly describe the use of pointers in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anyone knows how to clearly describe the use of pointers in C?

Can't really figure out how it works most of the time.

18th Nov 2019, 12:26 AM
Nikolai Bargamento
Nikolai Bargamento - avatar
1 Answer
+ 2
think of them as postcodes and addresses. postcodes allow to tell you where someone lives. once you know someone’s address you can and talk to someone there and do something else (e.g. paint their house, move in with them or help them move somewhere). so pointers in c are just addresses of houses (houses are memory areas in case of PCs)
18th Nov 2019, 1:01 AM
Dev Project
Dev Project - avatar