adspace
What is the difference between #import and #include in c++?
Answer Posted / Mukesh Kumar Prajapat
In C++, `#include` directive brings the entire contents of the included file into the current source file. On the other hand, `#import` is not a standard preprocessor command but is provided by some C++ compilers. It includes the header file and also manages symbol renaming to avoid name clashes. The main difference between them is how they handle namespaces and symbols.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers