Why we use # with include in c++ ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Why we use # with include in c++ ?

In every header files like #include<iostream>.

24th Jun 2019, 4:20 PM
vikram Kumar
vikram Kumar - avatar
1 Answer
+ 6
# symbol is used to specify the line which is imported or included before compilation of the program. These lines are called preprocessor directives.
24th Jun 2019, 5:52 PM
Deepak Kumar
Deepak Kumar - avatar