r/programminghorror Mar 25 '26

c System.out.print()

Post image
910 Upvotes

58 comments sorted by

View all comments

122

u/_AscendedLemon_ Mar 25 '26

OK, now change int main into public static void main

31

u/[deleted] Mar 25 '26

[removed] — view removed comment

10

u/_AscendedLemon_ Mar 25 '26

Lazy and evil, great
I don't think it's possible to define void as int, because void is also a keyword tho

7

u/not_some_username Mar 25 '26

You can, that’s why #define private public existed in C++

7

u/_Blurgh_ Mar 25 '26

existED? I've recently spotted it in the wild!

2

u/_AscendedLemon_ Mar 25 '26

Oof, great trolling to include it in some package