What is the macro function?

1 Answer

Answer :

Macro Substitution : They are two types of macro substitution.
 1 : Macro substitution without arguments.
2 : Macro substitution with arguments.
1 : Macro substitution without arguments : It is a process to substitute the constant or value in the place of an
identifier. It is possible to achieve this with the help of directive or macro definition statement #define.
 Syntax : #define identifier constant or expression
 Ex : #define PI 3.142
 #define MAX_MARKS 100
 #define MIN_MARKS 35
 }
Macro Substitution with Arguments :
Syntax : #define identifier(var1,var2,va3,….varn)string
 Where identifier is the name of macro function with the list of macro formal parameters
var1,var2,var3,…varn like the formal parameters in a function definition.
Ex : #define PROD(x) (x*x)

Related questions

Description : what is function? Write types of function with example?

Last Answer : Function: Function means, a large program can be divided into a series of individual related programs called modules. These modules are called functions. A function is a program segment that carries out ... efficiency of program. 4 : Function sharing : A function can be shared by many programmers.

Description : What is return statement in function?

Last Answer : Return Statement : The return statement may or may not send back any values to the calling function(main program). Syntax : return; // does not return any value or return(exp); // the ... function can return some values other than int type, then we must specify the data type to be return.

Description : What are the function variables? (OR) What are the local and global variables?

Last Answer : FUNCTION VARIABLES : They are two types of variables. 1 : Local Variable. 2 : Global Variable. 1 : Local Variable : The local variables are defined within the body of the function or block. These ... variables m' and n' are defined outside the main() function. Hence they are global variables.

Description : What are the function parameters?

Last Answer : PARAMETERS : parameters provides the data communication between the calling function and called function. They are two types of parametes 1 : Actual parameters. 2 : Formal parameters. 1 : Actual Parameters : These ... . . } Where a, b are the Actual Parameters x, y are the Formal Parameters

Description : What is function definition? (OR) what is user defined function? (OR) Write syntax of user defined function?

Last Answer : Function Definition : The program module that is written to achieve a specific task is called function definition. Syntax : type function-name(parameter list) // function header. { declaration of variables; body of function; // ... and b ); scanf( %d%d ,&a,&b); c=a+b; printf( %d ,c); }

Description : What is calling function? (OR) what is function call?

Last Answer : Function Call : The function can be called by simply using the function name. Syntax : function-name(); function-name(parameters); return value = function-name(parameters); Ex : add(); // function ... ,b); // function with arguments. c=fun(a,b); // function with arguments and return values

Description : How to Decleration of function?

Last Answer : Function Declaration (Function Prototype) : Like variable, all functions in a C program must be declared, before they are invoked. The declaration of each function should end with semicolon. Ths is ... : Parameter list declares the variables that will receive the data sent by the calling program.

Description : What is a function? Write advantages of function?

Last Answer : Function: Function means, a large program can be divided into a series of individual related programs called modules. These modules are called functions. A function is a program segment that carries ... efficiency of program. 4 : Function sharing : A function can be shared by many programmers

Description : Write a C program addition of two matrices?

Last Answer : #include #include void main() { int a[25][25],b[25][25],c[25][25],i,j,m,n; clrscr(); printf("enter the rows and colums of two matrics:\n"); scanf("%d%d",&m,&n); printf("\nenter the elements of A matrics"); for(i=0;i

Description : Write a C program multiplication of two matrices?

Last Answer : // Write a C program Multiplication of Two Matrices. #include #include void main() { int a[25][25],b[25][25],c[25][25],i,j,m,n,k,r,s; clrscr(); printf("enter the rows and colums of A matrics:\n"); ... B matrics:\n"); scanf("%d%d",&r,&s); printf("\nenter the elements of A matrics"); for(i=0;i

Description : What is call by value and call by reference?

Last Answer : PASSING PARAMETERS TO FUNCTIONS : The called function receives the information from the calling function through the parameters. The variables used while invoking the calling function are called actual parameters and the variables used in the ... *b) { int temp; temp=*a; *a=*b; *b=temp; }

Description : Explain category of functions with examples?

Last Answer : CATEGORY OF FUNCTIONS : A function, depending on whether arguments are present or not and whether a value is returned or not. The following are the function prototypes. 1 : Functions with no Parameters and no Return Values. 2 : ... (); } int sum(int a,int b) { int c; c=a+b; return c; }

Description : How to initialization of array with example?

Last Answer : Initilization of Array : assigning the required information to a variable before processing is called initialization.we can initialize the individual elements of an array. Array elements can be initialized at the time of declaration. Syntax : ... M','P','U','T','E','R'}; char b[] = COMPUTER ;

Description : What is an Array? Write advantages of arrays?

Last Answer : An array is a collection of similar data items. All the data items of an array are stored in continuous memory locations in RAM. The elements of an array are of same data type and each item can be accessed using the same name.

Description : What is call by reference? (OR) what is pass by reference?

Last Answer : Pass by reference (OR) Call by Reference : In pass by reference, a function is called with addresses of actual parameters. In the function header, the formal parameters receive the addresses of actual parameters. Now the formal parameters do ... a,int *b) { int temp; temp=*a; *a=*b; *b=temp; }

Description : What is call by value? (OR) what is pass by value?

Last Answer : Pass by value (OR) Call by value : When a function is called with actual parameters, the values of actual parameters are copied into formal parameters. If the values of the formal parametes changes in the function, the values of ... void swap(int a,int b) { int temp; temp=a; a=b; b=temp; }

Description : Write categeory of functions ?

Last Answer : CATEGORY OF FUNCTIONS : A function, depending on whether arguments are present or not and whether a value is returned or not. The following are the function prototypes. 1 : Functions with no ... : Functions with Parameters and no Return Values. 4 : Functions with Parameters and Return Values.

Description : Write types of functions?

Last Answer : The functions can be classified into two categories. 1 : Built in Functions (OR) Library Functions 2 : User-defined Functions. 1 : Built-in Functions (OR) Library Functions : The standard C ... increase efficiency of program. 4 : Function sharing : A function can be shared by many programmers.

Description : How can I use an RF signal to trigger a macro on my computer?

Last Answer : Do you know any code? I have used that same RTL dongle for projects on a pc but not mac. You’ll likely have to write a program to do this.

Description : How can I convert an Excel Macro to html or use the database in a webpage?

Last Answer : answer:Edit the macros and you will see Visual Basic (VB). ASP.NET pages. can use VB (and other languages). One thing about Microsoft technologies - they provide huge amounts of free learning and support. ... if you want to learn ASP.NET For a quick intro, I would check out W3 Schools tutorials.

Description : How would you solve this macro economics problem?

Last Answer : I can’t read it could you type it out?

Description : Can you help me map a MIDI/ASIO controller to keyboard or macro?

Last Answer : Are you wondering if you can control buttons on your DAW or other various programs on your computer?

Description : Extension tubes, or macro lenses?

Last Answer : answer:Well, it all depends on how fast you want your lens and how much glass you want to buy, and whether or not you want vibration reduction. In a situation like this you get what you pay for ... no experience with extension tubes. But an extension tube won't make your lens any faster than it is.

Description : Could someone explain this image of glass on a macro and micro level?

Last Answer : This wouldn’t happen to possibly be, say….your homework now, would it?

Description : Can I macro mouse movements/clicks?

Last Answer : What are you trying to do? Monitor someone ?

Description : What's the best macro lens for a Nikon D70?

Last Answer : I really have no clue , but i think this will

Description : Does a macro get built into a form or subform?

Last Answer : Ah, um. Never you mind.

Description : how does a macro lens work?

Last Answer : Gah.. I wish I was here when you asked this. I could explain it in detail, but I have no clue if you even need to know anymore. This explains it, though I can summarize if you want.. but that explains it in detail.

Description : macro photography

Last Answer : I used the ring-lights a bit when I did photography for the Navy. They are great ways to light small objects for macro-photography (and provide softer shadows for other types of photography, though front ... the shot before you move in closer. Then it would just be a matter of focusing and clicking.

Description : AP micro/macro?

Last Answer : answer:In my view, difficult concepts or fear of getting a C are bad reasons to not take a course. Looking back on high school and college, the tough courses were the ones where I ... ; Zinn's text shows how capitalistic ideas played out in practice, which I think is a valuable perspective.

Description : ……… are also called as parametric subroutines a.Micro b.Macro c.Sub Macro d.Sub Micro

Last Answer : b.Macro

Description : Explain what are macro regions, giving at least one example from India. -Geography

Last Answer : A macro-region is a large unit with greatly diversified natural resources capable of being a self-contained (not necessarily self-sufficient) region with a self-generating economy to support a high quality ... bonds, south peninsular region is an example of macro-region e.g., Indo-Ganga plain.

Description : Q1. What are macro-nutrients and why are they called macronutrients? -Science

Last Answer : Macro-nutrients are the fundamental elements that are used by plants in more quantity. Macro-nutrients needed by the plants are: • Macro-nutrients as the constituent of protoplasm ... proteins • Calcium is existing in cell wall • Magnesium is significant component of chlorophyll

Description : Which are macro-nutrients provided by inorganic fertilizers? -General Knowledge

Last Answer : The answer is 'Nitrogen,phosphorus and potassium'

Description : Which are macro-nutrients provided by inorganic fertilizers? -General Knowledge

Last Answer : answer:

Description : What is a macro virus ?

Last Answer : This type of virus is often seen nowadays. Macro viruses are the first viruses to infect data files. Macro viruses are made up of macro or OLE objects and are very easy to write off from ... floppy disk or internal network of infected documents , e-mail attachments or file downloads on the Internet.

Description : What is the difference between macro and macroeconomics ?

Last Answer : : Although the two branches of macroeconomics and macroeconomics originate from economics, there are considerable differences between them , which are discussed below: The English word micro is derived ... hand , macroeconomics is important for assessing the overall economic situation in a country.

Description : Why Semimacro Method Is More Convenient Than Macro ?

Last Answer : Semimacro method is more convenient than macro. This is because the Semimacro method requires less amount of reagents. In this way a lot of work can be done quickly. In the laboratory, hydrogen ... which remains in the solution or reacts , thus not polluting the environment of the reaction zone.

Description : What are macronutrients or macro elements ?

Last Answer : The elements that are required for the normal growth of plants in large quantities are called macronutrients or macro elements. There are 09 macronutrients , namely: Nitrogen ( N), Potassium ( K), Phosphorus ( P), Calcium ( Ca), ... Mg), Carbon ( C), Hydrogen ( H), Oxygen ( O) and Sulfur ( S ). ) .

Description : What is another name for macro elements ?

Last Answer : Macronutrients are also called macronutrients.

Description : How many macro elements ?

Last Answer : 10 macro elements .

Description : Hello, I would like to help advise which phone seems to be the best for macro photography? I know about lenses for mobile phones, but I would also like to start with a quality device. Thank you, V.

Last Answer : Need Answer

Description : $ All the living and non living matter is formed of molecules. ! Molecules are of two types (i) Micro-molecules (ii) Macro-molecules.

Last Answer : $ All the living and non living matter is formed of molecules. ! Molecules are of two types (i) Micro- ... is wrong D. If both As and R are wrong.

Description : What is the name of the macro molecules that make up DNA?

Last Answer : Nucleic acids.

Description : In your opinion what schools of economic and political thought are the most compatible with social work practice What are the incompatibilities in the various school of thought with macro and micro le?

Last Answer : This is an essay assignment that you need to do and it asks foran opinion. We don’t write essays for students and you need to doit. This is actually 2 questions that was given you.

Description : What does macro lobulated mean?

Last Answer : Feel Free to Answer

Description : What it the definition for macro screening?

Last Answer : Mcro screening is such a process which helps to select a project by evaluating the influential elements of the business concepts.

Description : What are the macro nutrients of an avocado?

Last Answer : What is the answer ?

Description : What it the definition for macro screening?

Last Answer : Mcro screening is such a process which helps to select a project by evaluating the influential elements of the business concepts.

Description : What type organic macro molecule is form polymerization reaction between amino acids?

Last Answer : This macromolecule is a protein.