by scandox · 8y ago · 0 comments
int main(int ac, char **av)
and then try to figure what the following mean (what type they are, and whether each of them is a pointer or a pointed-to thing, or both: av
*av
**av
av[0]
etc.I was once teaching a class on C to a group of experienced programmers (10+ years each, but new to C), and after I explained the char
**av
stuff, one of them said "Now it is overhead transmission" :)One simple example showing value semantics would’ve made it click for me, and things only get more interesting when you talk about performance.
Here is a visualization I created to illustrate linked list: https://goo.gl/12juwA
Look at 68000 assembly language. In particular indexed addressing modes.
In C really that's almost all they are.
[1] https://cs50.tv