what does pre processor means | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what does pre processor means

I am not able to understand this can you tell me what does it means

4th Apr 2018, 12:25 PM
Sahil Chauhan
Sahil Chauhan - avatar
4 Answers
+ 9
#-> preprocessor preprocessor means before processing towards the program and before the compilation of source code preprosessor directive are processed like when we write the first line of code #include<iostream> that means before the processing of main program input output stream library's are included
4th Apr 2018, 12:55 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 1
oh thanks👍
4th Apr 2018, 1:04 PM
Sahil Chauhan
Sahil Chauhan - avatar
+ 1
i have to admit it's rather contradictory in itself, just like 'prehishoric'. i mean when we consider what 'history' means, then there isn't anything that comes before 'history' as it is also 'history'. but the definition has a specific meaning of 'history': 'written' history. so prehistoric means 'before *written* history'. Similarly, the 'preprocessing' still is processing, but it does come before other 'normal' processing. usually this 'normal' processing is specifically 'compiling' your code. i think of 'preprocessing' as 'precompiling'. and that has always made sense to me, and i've never found it to be inaccurate yet. but i've never been taught that either. just an observation from a programmer who has been programming for about 30 years now.
4th Apr 2018, 1:46 PM
Shawn Kovac
Shawn Kovac - avatar
+ 1
Martin Taylor, a preprocessor does more than 'merely simple text substitution'. but it seems the rest of your statement is probably accurate. a preprocessor can turn on and off whether a compiler gives certain warning messages too. this is more than simple text substitution.
5th Apr 2018, 12:25 AM
Shawn Kovac
Shawn Kovac - avatar