Live data from Hacker News

Three Star Programmer

wiki.c2.com

1–3 of 3 posts

Re: Three Star Programmer

#2
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.

Re: Three Star Programmer

#3
post #2

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 represent…

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.