IHYPRESS.NET
C
HOME | ASP | C | CSS | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Earn Free Bitcoin
CAdvanced Programming ❯ Function Macros
<12.07>
//function macros #include <stdio.h> #define CUBE(x) (x * x * x) #define REPORT(a,b) (printf("a is %d and b is %d\n", a, b)) int main (void) { int n = 6; printf ("The cube of %d is %d\n", n, CUBE(n)); REPORT (10, 20); return (0); }
Hergestellt in Deutschland / Made in Germany
The cube of 6 is 216 a is 10 and b is 20
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.