answersLogoWhite

0

varying no of arguments

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is character oriented function?

What about strchr? Or, isdigit and its family (often implemented as macros, though)?


Which header file should you include if you are to develop a function which can accept?

To develop a function that can accept variable arguments in C, you should include the header file <stdarg.h>. This header provides macros like va_list, va_start, and va_end, which are essential for handling functions with a variable number of arguments. By using these macros, you can iterate through the arguments passed to your function.


What are the uses of macros?

With macros, you can perform long or boring tasks just by a single click or keystroke combination. Also, you would not need to repeat the same action over and over again.


Is macro a recursive function?

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.


What is the difference between macro and inline function in c plus plus?

Macros are not actually part of the C++ language; they are nothing more than a simple text-replacement system intended to simplify your coding. Macros do not adhere to C++ type safety and cannot be debugged because macros are preprocessed, prior to compilation. Your compiler can only see the preprocessed code, not the original source code, and therefore cannot debug macros because the macros no longer exist at that point. Inline functions are functions that can be debugged like any other function, but the compiler is able to eliminate the overhead of function calla by replacing those calls with inline expanded code. This is not unlike a macro, which is by definition inline expanded, but retains the built-in type safety and debugging capabilities of the C++ language itself. Typically, if you can use an inline function (or C++ is general) then that is always the preferred option. But if a macro can achieve more than can be achieved with C++ alone, or can otherwise simplify the equivalent C++ code, then use a macro. Just keep in mind that macros are not type-safe and cannot be debugged by the C++ compiler.

Related Questions

Where can you download macros?

You do not really download macros, but you can get lists of code to create your own macro. There are many locations you can find if you search for "sample excel macros." You will find some examples at the related links.


What is character oriented function?

What about strchr? Or, isdigit and its family (often implemented as macros, though)?


What is functional aspect?

its an aspect that depends on function xD !


Which header file should you include if you are to develop a function which can accept?

To develop a function that can accept variable arguments in C, you should include the header file <stdarg.h>. This header provides macros like va_list, va_start, and va_end, which are essential for handling functions with a variable number of arguments. By using these macros, you can iterate through the arguments passed to your function.


What are the uses of macros?

With macros, you can perform long or boring tasks just by a single click or keystroke combination. Also, you would not need to repeat the same action over and over again.


What happens if I don't hit my macros consistently?

If you don't consistently meet your macronutrient (macros) needs, you may not have enough energy or nutrients for your body to function optimally. This can lead to fatigue, muscle loss, and potential health issues in the long run.


Is macro a recursive function?

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.


Why you use macros?

Macros are used to automate repetative tasks.


Why do you use macros?

Macros are used to automate repetative tasks.


How you run the macros into Microsoft Excel?

You can open the Macros section and run macros from there. The quickest way to do that is press Alt - F8. You can also run macros by clicking on buttons or other objects that you have assigned them to.


How do you get Macros to work on newer versions of Excel?

There can be many reasons why your macros are not working. Check security settings to ensure your version of Excel has macros enabled. Many times, the default installation disables the ability to use macros. Ensure you accept security certificates for the author of the macros.


How do you run VB in Microsoft Excel?

You can do it by creating macros and then editing the macros. The macros or set of code can be applied to a button. It will depend on the version of Excel you have, but you can usually start creating macros or writing code through the Tools menu.