stebo
link
fedilink
21M

yeah I thought so, does it work in C?

@Bogus5553@lemm.ee
link
fedilink
4
edit-2
1M

void main(){...} is not in the standard, but works on both MSVC and GCC (with warnings). I think it works on both C/C++, but you really shouldn’t use it in production. Just use int main(void){...} , without any return value, which is permitted in the standard, and will return success iirc.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 0 users online
  • 24 users / day
  • 59 users / week
  • 283 users / month
  • 1.97K users / 6 months
  • 1 subscriber
  • 1.72K Posts
  • 37.4K Comments
  • Modlog