Answers for "c macros"

C
2

cpp macro

#define PRINT(x) std::cout << x << std::endl
Posted by: Guest on July-07-2020
1

c macros

/* 
Every time the program encounters circleArea(argument),
it is replaced by (3.1415*(argument)*(argument)).
*/
#define circleArea(r) (3.1415*(r)*(r))
Posted by: Guest on June-01-2021
3

macros in c

A macro is defined at the top of your program.
for eg: #define PI 3.14
Now whenever you write PI in your program 'PI' is replaced by 3.14
Actually this replacement is done by the preprocessor before the source code is compiled.
Posted by: Guest on March-06-2021

Code answers related to "C"

Browse Popular Code Answers by Language