What is actuallly a "# " | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is actuallly a "# "

pre processor directive

29th Aug 2018, 1:18 PM
Rgodella
Rgodella - avatar
7 Answers
+ 1
every computer language defines some symbols and words which mean something special to the compiler of the language for example ' if()' in every language means that the next expression which is coming needs to be evaluated for true or false, similarly when a while is encountered the compiler understands that there are some statements ahead need to be executed until some condition holds true but not every language implements them in the same way. similarly python has defined #symbol to be start of a comment where as c and c++ have defined it as start of directives like #include , #define etc. you can learn more about this in course called 'automata of computer languages' and 'compiler design '
10th Nov 2018, 4:53 PM
MOHD SHADAN KHAN
MOHD SHADAN KHAN - avatar
29th Aug 2018, 10:32 PM
༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つ - avatar
0
It's comment symbol... You can write your comments after this symbol in a single line, if you want to write two (or three, four...) lines comments, you must use the """...""" symbol...
29th Aug 2018, 3:44 PM
Zakirov Bobur
Zakirov Bobur - avatar
0
But we write header file after #.. Not comment
29th Aug 2018, 3:56 PM
Rgodella
Rgodella - avatar
0
I know but how????
30th Aug 2018, 2:10 AM
Rgodella
Rgodella - avatar
0
depends on the language we are using
30th Aug 2018, 6:26 AM
kevin snap
kevin snap - avatar
0
In C++ it is the Preprocessor command. https://www.geeksforgeeks.org/cc-preprocessors/
31st Aug 2018, 4:01 AM
Jeff Cales