Re:The Ten Commandments for C Programmers (1987)
by klyrs on Saturday May 23, 2020 @11:19AM
(#23283614)
Depends on what you mean by "effectively." If you wanna, say, do an exhaustive search over all 4-dimensional integer vectors in a rectangular region, and print off the ones that satisfy some relationship, you don't need pointers (nevermind what printf and string literals are doing under the hood). It's a wonderfully beefy desktop calculator, in that way. But for most applications, pointers are pretty much necessary.
[ Parent
| on HN ]
Re:The Ten Commandments for C Programmers (1987)
by WalterBright on Saturday May 23, 2020 @05:23PM
(#23286591)
Arrays in C (once passed to functions) are pointers, even when they use array syntax: