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


Please Help Members By Posting Answers For Below Questions

Can union be self referenced?

1265


daily Routine of father

1483


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1164


What is the latest version on c++?

1205


What character terminates all character array strings a) b) . c) END

1394