Bifalgorithm post · Computer science one · Preprocessor Directives

What are macros in C?

What are macros in C? (Computer science one · Preprocessor Directives) — "Another preprocessor directive establishes macros using the #define keyword. A macro…

Ideas in this flowchart

  • The #define preprocessor directive establishes macros.
  • The directive uses the #define keyword.
  • A macro is a single instruction.
  • That instruction specifies a more complex set of instructions.
  • Macros can define constants.
  • The constants can be used throughout the program.
  • The concept is illustrated with an example.
Feed/

What are macros in C?

No cover

Channel

Computer science one

1 page

"Another preprocessor directive establishes macros using the #define keyword. A macro is a single instruction that specifies a more complex set of instructions. The macro can be used to define constants to be used throughout your program. To illustrate, consider the following example."

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.