fubarx , an Memes in Destroying friendship

MSVC supports unicode. In C or C++, you could try:

; ;

Second one is the greek semicolon but the client I'm using may strip it out. I'm too lazy to try.

PM_ME_VINTAGE_30S , an Memes in Destroying friendship
@PM_ME_VINTAGE_30S@lemmy.sdf.org avatar

Running #define ; anything yields error: macro names must be identifiers for both C and C++ in an online compiler. So I don't think the compiler will let you redefine the semicolon.

PM_ME_VINTAGE_30S , an Memes in Destroying friendship
@PM_ME_VINTAGE_30S@lemmy.sdf.org avatar

Well I just tried #define int void in C and C++ before a "hello world" program. C++ catches it because main() has to be an int, but C doesn't care. I think it is because it just treats main() as an int by default; older books on C don't even include the "int" part of "int main()" because it's not strictly necessary.

#define int void replaces all ints with type void, which is typically used to write functions with no return value.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine