Computer Science, asked by subrataghoshab3143, 1 year ago

What is a pre-processor statement?

Answers

Answered by smarazazaidi
2

Answer:

Every computer program or compiler include pre-processor directive. There are the directives that give the instruction to compiler program to pre-process important information before starting the compilation of program. It starts with # symbol. Usually, it is use to make program code more easy and user friendly. It consist of some special type of instruction about  some reserve words that are used in program.

Answered by adventureisland
1

Pre-processor statements:

  • Pre-processor statements or directives are the lines of code in a C/C++ program that are compiled before the compilation of the actual program starts.
  • They provide basic information to the compiler about the various inclusions to be made in the program like header files and other pre-defined processors.
  • They are generally used to define a particular value to a certain piece of code. They are created using the #define keyword in the global scope. For example, #define PI 3.14. This statement will replace the occurrence of the word PI in the program with its specified value, i.e 3.14.
Similar questions