retagged by
342 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

4 votes
4 votes
1 answer
1
ritwik_07 asked Jun 10, 2023
434 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 ...
8 votes
8 votes
2 answers
2
gatecse asked Jul 26, 2020
687 views
The number of characters (including whitespaces if any) printed by the following C program is#define sum(a, b) #a "+"#b "=%d" #include<stdio.h int main() { printf(sum(6,9...
4 votes
4 votes
1 answer
3
gatecse asked Jul 26, 2020
394 views
What will be the output of the following C program:#include<stdio.h #define hello "myhello" "myhi" int main() { printf(hello); }myhello myhimyhellomyhimyhello myhi