by ryl00 · 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.