Re:How Many Lines of C It Takes to Execute a and B in Python?
by jefftk on Monday December 11, 2023 @09:21AM
(#38600846)
If you're being silly you don't need a lot of that:
You can even do away with types entirely, as long as you're working with ints:
Rarely a good idea, though!
[ Parent
| on HN ]
Re:How Many Lines of C It Takes to Execute a and B in Python?
by benj111 on Monday December 11, 2023 @10:36AM
(#38601507)
True, but then someone will pop up and announce UB! (This probably isn't ub though).
Anyway, my main point was that c has more boilerplate. It's never 'a+b'.
Second, printf is complicated, that's aimed more at the op though.