+ 3
Why we are using # in header files....in c and c++?
10 odpowiedzi
+ 5
#include is directive that calls the preprocessor to include header file with Your code.
& header files contain the declaration of predefined FUNCTION.
+ 3
Hi Monica Raghu ,
once you build code, there are few steps which takes place before you get .exe or .DLL file from your code...
first step is preprocessing... this step is responsible for expansion of code from different units... there are different preprocessor directives for example, include, ifndef etc..
to let compiler know that statement is nothing but usage of preprocessor directives, it should be started with #... it's how c++ notation is..
so, #include on header file is to indicate that preprocessor has to include code of that header file...
+ 2
it's used for including
+ 2
for using predefined function you have to include the file in which its declaration is present.. for including file we use # and the file name you can also include de your file
+ 1
tq sir Ketan Lalcheta 😊
+ 1
happy to help
+ 1
🙄
0
😜😝
0
because the all pre defined function are inside in this header file for perform a particluar task
0
# represents start, hence.