answersLogoWhite

0

Macro in C Language

Updated: 11/7/2022
User Avatar

Wiki User

11y ago

Best Answer

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.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Macro in C Language
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is MAXSIZE?

MAXSIZE is a C language macro defining the maximum length for all standard library input buffers.


What is a macro and where is it used?

A macro is used in the C programming language, and it's something that the C preprocessor reads before reading the actual code. Here's an example: #define foo(x) x = 5; Now, if you type this: foo(myVariable), then myVariable would be five.


How is the getchar function used in a C program?

The getchar() is used in 'C' programming language because it can read the character from the Standard input(i.e..from the user keyboard),and converts in to the ASCII value.


What is macro in economics?

C+i+g=?


What are the four macro skills and its definition?

The four macro skills in language learning are listening, speaking, reading, and writing. Listening involves understanding spoken language. Speaking involves producing spoken language. Reading involves understanding written language. Writing involves producing written language.


Define the four macro skills?

The four macro skills are associated with learning any language. These four macro skills are speaking, listening, writing, and reading.


What is the emergency c-link macro?

55


What do macro-sociolinguistics deal with?

Macro-sociolinguistics deals with the study of language in its social context on a larger scale, focusing on how language functions within society, including issues such as language variation, language policy, and language planning. It explores how language interacts with broader social structures and institutions, such as politics, education, and economics.


What are the language macro skills?

Listening, Speaking, Reading, and Writing.


What is null macro?

The NULL macro is an implementation-defined macro. It is used to symbolise the zero address (0x0) in C programs and older C++ programs. It is not type safe, but is the conventional method of assigning the zero address to a pointer variable. C++11 introduced the type-safe nullptr data type.


What are the four macro language skills?

The four macro language skills are listening, speaking, reading, and writing. Listening involves understanding spoken language, speaking involves using words to communicate orally, reading involves understanding written language, and writing involves producing written language.


Why c language has name c why not a?

C-language was derived from B-language.