Settings

Theme

Three Star Programmer

wiki.c2.com

2 points by PawBer 4 years ago · 2 comments

Reader

jleyank 4 years ago

Odd. One uses the data structures that are necessary to solve the problem. In C, can typedef things to make them clearer but there’s stars underneath. In chemistry,

Atomic symbol - char *, List of elements in a molecule - char **, List of elements in a list of molecules - char ***

But then, is it char*** p or char ***p? Do you think of what it represents or how it is referenced?

Bloody stars can’t easily be represented which is odd in a website dedicated to coders.

  • nh23423fefe 4 years ago

    I always think of the pointer as being a type which takes a type parameter.

    so char** is just a pointer to char**. It's not the total levels that matter only the operations on this level.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection