+ 13
Why we use # file in c & c++???
10 Respostas
+ 9
Thanks Friends for Tell about # file it is very important lesson for me.
+ 6
Andrei O so is the pre-processor part of the Compiler?
+ 4
What begins with # is usually an instruction to the compiler, so those lines are evaluated before any compiling process starts.
+ 4
Sonic theoretically is considered separated from the compiler, but the main idea is that the # directives must be in some way or form communicated to the compiler so the pre-processor has no good reason to exist without a compiler.
In practice is just easier to encapsulate the knowledge that # directives are processed before compilation, there are standalone preprocessors, Boost wave or GPP but in general, you can't preprocess a source without compiling it.
+ 4
~ swim ~ What I meant is that you usually don't preprocess files without having in mind to compile them that's why you must specify specific parameters to the compiler in order to get the preprocessed output.
Also, you can have a simple source file without any dependencies that can be compiled without being preprocessed if you like going to the extreme case scenarios just for the purpose of invalidating the main idea.
+ 3
# file are used to run our program with including the predefined methods and classes.. .. it provides the public access to ur programs for using the inbuilt functions and headers...
0
hitesh