What is significance of preprocessor ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is significance of preprocessor ?

25th Nov 2016, 1:34 PM
BridaSwan
2 Answers
+ 2
so you can detect what compiler or environment your program is running in. Some commands only work in certain environments (like getch in Windows). So depending on what's detected, a different part of your code will be used.
25th Nov 2016, 3:16 PM
scott johnson
scott johnson - avatar
+ 1
Preprocessor directive starts with #. It has the preprocessed information in it. If it used in a statement then whatever function that is preprocessed it is used
25th Nov 2016, 3:19 PM
joffie
joffie - avatar