How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?



How do you instruct your compiler to print the contents of the intermediate file showing the effects..

Answer / Mohd. Asim Khan

You can instruct the compiler to print the contents of the preprocessed source file by using the '-E' flag. For example, in GCC, you would compile with the command 'g++ -E filename.cpp'. This will output the preprocessed source code to standard output.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a conversion constructor?

1 Answers  


how to explain our contribution in the project?

1 Answers   Wipro, Yahoo,


What is difference between c++ 11 and c++ 14?

1 Answers  


Can we change the basic meaning of an operator in c++?

1 Answers  


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1 Answers  


What is the purpose of template?

1 Answers  


How many storage classes are available in C++?

1 Answers  


What is difference between rand () and srand ()?

1 Answers  


Is c++ a high level language?

1 Answers  


What is a type library?

1 Answers  


Why should you learn c++?

1 Answers  


What do you mean by early binding?

1 Answers  


Categories