+ 4
Explaination of this code, anyone?
What is the output of this code? #define macro(r, a, b) b##a##r #define CHAOS macro(r, a, b) void CHAOS(int n) { printf("%d", n); } int main() { bar(4); bar(2); return 0; }
5 odpowiedzi
+ 3
Thank you so much, Rewa Mathur!!
+ 2
What is bar(4) bar(2) meant to be doing here?
+ 2
preyash gothane okay got it!! Thank you!!
+ 1
I guess this will help you
.
https://gcc.gnu.org/onlinedocs/cpp/Macros.html
+ 1
In that link I shared read this
"Object-likemacros resemble data objects when used, function-like macros resemble function calls"
So those bar are like objects I guess