DEV Community

Discussion on: Do you know what a pointer is?

Collapse
 
yoursunny profile image
Junxiao Shi

A pointer is a magical being that causes your program to crash with a segmentation error.

Collapse
 
snlgrg profile image
ѕυηιℓ gαяg

the one who knows it will perish and the one who ignores it will get segmentation fault :-p

Collapse
 
otumianempire profile image
Michael Otu

I always get a segmentation fault in CPP rather than C, when using pointers. So I switched to python and there was nothing like a segmentation fault. I like C more though.

Thread Thread
 
yoursunny profile image
Junxiao Shi

You can use Python until it's too slow and you need an extension - written in C.
I needed C extension only once in many years, for a custom hash function.

Thread Thread
 
otumianempire profile image
Michael Otu

I hope you don't mind I tag along - following you

Collapse
 
otumianempire profile image
Michael Otu

I always have to come back and learn C but pointers deter me from moving forward.