Macro's in C
Macro's are program-writing tools to write a program more efficiently. They are implemented BEFORE compilation, during preprocessing, and affect the language the compiler gets to compile but not the compilation itself.
EOF - End-Of-File in C
EOF is, in fact, a macro. The pre-processor replaces all the programmer's mentions in a program of EOF with an agreed to value.
PreprocessingMacro's are program-writing tools to write a program more efficiently. They are implemented BEFORE compilation, during preprocessing, and affect the language the compiler gets to compile but not the compilation itself.
EOF - End-Of-File in C
EOF is, in fact, a macro. The pre-processor replaces all the programmer's mentions in a program of EOF with an agreed to value.
With C we instruct the compiler to create a program in machine language. We use instructions that the compiler understands, but not the hardware. The compiler makes our program understandable to the hardware., Many aspects of C guide the compiler, macro's are one element to that, but also headers and others, where as algorithms go deeper into the underlying mechanics of computation itself. Preprocessing, as it were, creates a form document , readable by the compiler, that is then entered into the compiler and compiled to machine language. These are all layers of abstraction to bridge the human mind and the hardware with one another.