edited by
725 views

1 Answer

0 votes
0 votes

a call to macro B can appear within macro A. This is a common practice in macro programming and is known as nested or recursive macros.

Here's a simple example in C-style preprocessor directives to illustrate:

#define B() printf("Hello from B!\n")
#define A() { printf("Hello from A!\n"); B(); }

int main() {
    A();  // This will expand to printf("Hello from A!\n"); printf("Hello from B!\n");
    return 0;
}

 

Related questions

3 votes
3 votes
1 answer
2
makhdoom ghaya asked Nov 30, 2016
774 views
Express the following list in terms of a linked list structure suitable for internal representation.$(((ab)c)d((e)))$