Declare macro
/*OBJECT-LIKE MACRO*/
//Assigns the macro FOO to the value bar in the c preprocessor
#define FOO bar
//Example:
#define STRING "Hello, world!"
printf(STRING);
//Prints Hello, world! to the console
/*FUNCTION-LIKE MACRO*/
#define FOO() bar()
//Example:
#define PRINT() printf("Hello, world!")
PRINT();
//Prints out Hello, world!
Also in C:
- c random number
- c concatenate strings
- switch case c
- c flip variable
- typedef vs #define
- diamond dataset in r
- how to combine strings in c
- how to make infinite loop in c
- c isdigit function
- rakshabandhan 2020
- printf("%3d ",XX);
- c program to find average of 3 numbers
- ecole de chien d'aveugles paris
- sleep in c programming
- how can i remove a specific item from an array
- how to make services in linux
- linux kernel write()
- factorial of a given number in c
- scanf read line
- write a program to ask the user 8 integer numbers. your program will then move all negative elements of your array to the end of the array without changing the order of positive elements and negative elements
- c calloc
- 32bit or 64bit
- Mosquitto MQTT client arguments
- sum of arrays