answersLogoWhite

0

Procedures-Procedure is the set of codes written in other module used 2 solve a specific task and can be included in the main program when an instruction CALL is used in the program.

Macro is also the set of codes used in the 'main program' or same module used to solve a specific task. Macros can be called in the program with the syntax using syntax-MACRO_NAME(actual variables). But the macros should be included in the program with the syntax MACRO_NAME(dummy variables). Dummy and actual variables should match.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Macro in C Language?

Macros are very common and often used in C programming to declare constants, such as strings, addresses, or any other values such as maximum number of elements in an array, and so on. For those who are not familiar with them, Macros are declared by the #define keyword. Macros are also used to define some basic functionality given a set of 1 or more typeless parameters, similarly to an inline function.


How do you write a c program to calculate the circumference of the circle using macros with parameters?

// macro definitions: #define PI 3.14159265358979323846 #define CIRCUMFERENCE(radius) (2. * (radius) * PI) // use this as in CIRCUMFERENCE(21.34)


Can a program written in 8085 microprocessor run in 8086 microprocessor?

No. They have a different instruction set. However, the processors are sufficiently similar that an 8086 assembler could assemble an 8085 program, given appropriate constants and macros. Some things, however, such as RIM, SIM, RST, etc. do not have equivalents in the 8086.


Write a program in C using macros?

#include <stdio.h> #define HELLO(s) printf ("%s\n", s) #define MAIN main (void) { HELLO ("Hello world!"); return 0; } MAIN


Types of macros in c?

AnswerC is a language that could be used to create macros. A macro, defined as a set of instructions to evaluate input and give a set output is refered to as a statement block in C. If() statements can be used to evaluate an input for a given set of instructions, there are many others but given the structure of your question you should start with these, if() statements, and move on to the more advanced ones when you are comfortable with the language.I recomend this site for those just starting out.http://www.cplusplus.com/AnswerParametrized and parameter-less, examples:#define MAXNUM 32#define SQUARE(x) ((x)*(x))Other categorization: macros with/without value:#define HEADER_INCLUDED#define TRUE 1


What are macros in c?

In C macros are a piece of code that is replaced by its value whenever it called from. Syntax for defining a macro is : # define Macro_Name Value As: # include<stdio.h> # define three 3 int main(){ printf("%d", three); return 0; } output: 3. In above example three is a macro and its value is 3. The place for defining macros are same as including a header file in a program.


What are macros in word processing?

Macros are stored keystrokes, or sets of editing and formatting commands, that can be replayed whenever needed.


Why do you use macros?

Macros are used to automate repetative tasks.


Why 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.