answersLogoWhite

0

Is macro a recursive function

Updated: 12/12/2022
User Avatar

Wiki User

11y ago

Best Answer

If you're asking if the c preprocessor supports recursive macros, the answer is no. The preprocessor is single-pass and since the "function" must be defined before it can be referenced, it can not be recursive.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is macro a recursive function
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between function and recursive function?

I will explain in the easiest way the difference between the function and recursive function in C language. Simple Answer is argument of the function is differ but in the recursive function it is same:) Explanation: Function int function(int,int)// function declaration main() { int n; ...... ...... n=function(a,b); } int function(int c,int d) { ...... ...... ...... } recursive Function: int recursive(int,int)// recursive Function declaration main() { int n; ..... ..... ..... ..... n=recursive(a,b); } int recursive(int a,int b) { ..... .... .... .... } Carefully see, In the recursive Function the function arguments are same.


What is recursive macro expansion?

This may seem like a silly question, but you will gain some knowledge on the inner working of the preprocessor of the recursive macro expansion. It will actually require a lot of scripts.


What is a recursive relationship?

a function that recalls itself again and again is called recursive relationship.


Can you use main function as a recursive function in C?

Yes


Difference between function and recursive variable?

A function can map for sets with infinite elements. Recursive variables, being 'algorithms of algorithms', are restricted to finite elements.


In embedded systems perspective which is better to use. Macro or function?

In VBA, a macro is the name for the function that you can see on the GUI and use, and a function is a procedure called by a macro. A Macro is more "on the stage", and a Function is more "backstage".


What is the definition of non recursive in c?

non recursive function is excuted faster than recrussive


What is the maximum depth of recursive calls a function may make?

Recursive function call depend your primary memory space because the recursive call store in stack and stack based on memory.


The efficiency of using recursive function rather than using ordinary function?

For some algorithms recursive functions are faster, and there are some problems that can only be solved through recursive means as iterative approaches are computationally infeasible.


What do you call a function recurative?

I guess it would be 'recursive'.


Primitive recursive operation Exponential function in theory of computation?

equals(x,y)=1 if x=y =0 otherwise show that this function is primitive recursive


Does javascript support recursive functions?

Yes, but a recursive function running for a long time would eventually cause your program to crash.