3 ms·
I figured that having arrays decay into pointers is one of those features that got grandfathered in because changing it would have broken the dozen or C program
by jandrese 7y ago
I figured that having arrays decay into pointers is one of those features that got grandfathered in because changing it would have broken the dozen or C programs that existed at the time. It's a real shame too because a working sizeof() for strings could have avoided a LOT of C exploits over the years.