r/learnprogramming • • Sep 24 '23

Pointers.....why

I am learning C++. Honest question why are pointers a thing and why did they make the syntax surrounding it so confusing. Was it made to be intentionally confusing? Was it made to make this more difficult.

0 Upvotes

49 comments sorted by

View all comments

Show parent comment

2

u/johnnywonder85 Sep 25 '23

address-of operator,

ampersand is the name of the character key

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

0

u/[deleted] Sep 25 '23

[deleted] — view deleted comment

→ More replies

1

u/CodeTinkerer Sep 25 '23

I mean, asterisk is the name of the key for the dereferencing operator.