+ 1
What is # use for
11 Respostas
+ 2
From what I know about C and C++, '#' is used for including libraries (a collection of code containing functions, which may or may not be written in the same language).
{Sorry but this isn't completely correct}
+ 1
Hey there Mohammad mubeen,
Please add relevant tags and specify your programming language.
Thanks 🙂
https://www.sololearn.com/Discuss/333866/?ref=app
Btw for example if you mean python, "#" is used for a single line commend, ignored by the compiler.
Or in the c languages, if I'm correct, it's used to import any type of file, like directives.
+ 1
Martin Taylor Thanks for rectifying my mistake. What does inserting header files actually do?
+ 1
Martin Taylor Thank you very much for the detailed explanation. But what is the point of declaring a prototype if it's already included by the linker? I mean, what purpose does # include actually serve in a C code?
+ 1
Martin Taylor Thank you once again!
0
Martin Taylor And the linker uses this to add the required libraries, right? Thanks.