retagged by
384 views

1 Answer

2 votes
2 votes
A definition via a macro does neither have a type nor explicitly allocates memory, hence faster than type declaration.

Related questions

492
views
1 answers
4 votes
ritwik_07 asked Jun 10, 2023
492 views
#include<stdio.h> #include<string.h> #define MAX(x, y) ((x) > (y) ? (x) : (y)) int main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i, j, k); return 0; }