What is the difference between the compiler and the preprocessor?



What is the difference between the compiler and the preprocessor?..

Answer / Shyamal Kumar

The compiler in C++ translates high-level source code into lower-level object files or executables, while the preprocessor processes the source code before it's compiled. The preprocessor handles directives such as `#include`, `#define` and conditional compilation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is #include sstream?

1 Answers  


List the merits and demerits of declaring a nested class in C++?

1 Answers  


Write about the retrieval of n number of objects during the process of delete[]p?

1 Answers  


How do c++ struct differs from the c++ class?

1 Answers  


What is a tuple c++?

1 Answers  


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

1 Answers  


Can we declare destructor as static? Explain?

3 Answers  


Explain virtual destructor?

1 Answers  


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

1 Answers   Cankaya University,


which operator is used for performing an exponential operation a) > b) ^ c) none

1 Answers  


What is exception handling? Does c++ support exception handling?

1 Answers  


Is it possible for a member function to use delete this?

1 Answers  


Categories