TIL

- C does not support function overloading

- the \v vertical tab character is kind of the equivalent of starting a new line and then indenting to the end of the previous line

@derickflorian While some comdemn it, you can use macro in fancy ways, casting to a type or doing fancy things like passing the type as parameter or building a function generator (not so good).

The important is make it always work as a function emulating return with parenthesis operator (last member as return) or passing the calling to the correct real function.

Follow

@arkt8 that is really cool! I only talked about macros once with my mentor and he discouraged using macros except for symbolic constants. That said I would love to try that as an exercise when I become more advanced!

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.