What is the difference between #import and #include in c++?
Answer / 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 |
What is a pointer with example?
What are the various operations performed on stack?
Can we make copy constructor private in c++?
What is the basic structure of c++ program?
How to avoid changing constant values?
What is a local variable?
What is a custom exception?
Why do we use iterators?
What is & in c++ function?
What is prototype in c++ with example?
Explain static and dynamic memory allocation with an example each.
How do you invoke a base member function from a derived class in which you’ve overridden that function?