Convert C/C++ program to Preprocessor code Last Updated : 29 Aug, 2018 Comments Improve Suggest changes Like Article Like Report We use g++ compiler to turn provided Cpp code into preprocessor code. To see the preprocessor code generated by the CPP compiler, we can use the “-E” option on the command line: Preprocessor include all the # directives in the code. and also expands MACRO function. Syntax: g++ -E filename.cpp CPP // MACRO named MAX initialism to 10 #define MAX 10 int main() { int a = MAX, b = MAX; // Add two values. int c = a + b; return 0; } Running the command: g++ -E geeks.cc Output : int main() { int a = 10, b = 10; // Add two values. int c = a + b; return 0; } Comment More infoAdvertise with us Next Article C++ Preprocessor And Preprocessor Directives N Naman_Garg Follow Improve Article Tags : C++ Practice Tags : CPP Similar Reads C++ Preprocessor And Preprocessor Directives The preprocessor in C++ is a tool that process the code before it is compiled by the compiler. It does many tasks such as including header files, conditional compilation, text substitution, removing comments, etc. Preprocessor also allows the developers to select which portions of code should be inc 6 min read C Preprocessor Directives In C programming, the preprocessor is a program that process the source code before the actual compilation begins. It uses preprocessor directives are commands that instruct the preprocessor to perform specific actions. These directives start with the # symbol.List of Preprocessor DirectivesThe foll 6 min read C Preprocessor Directives In C programming, the preprocessor is a program that process the source code before the actual compilation begins. It uses preprocessor directives are commands that instruct the preprocessor to perform specific actions. These directives start with the # symbol.List of Preprocessor DirectivesThe foll 6 min read C Preprocessor Directives In C programming, the preprocessor is a program that process the source code before the actual compilation begins. It uses preprocessor directives are commands that instruct the preprocessor to perform specific actions. These directives start with the # symbol.List of Preprocessor DirectivesThe foll 6 min read Convert C/C++ code to assembly language The C/C++ compiler turn the given C/C++ source code into the Assembly Code. Then it is converted to the object code. We can use this property to convert the C or C++ code to assembly code.We use gcc compiler to turn provided C/C++ code into assembly language. To see the assembly code generated by th 3 min read C++: Methods of code shortening in competitive programming Shortcode is ideal in competitive programming because programs should be written as fast as possible. Because of this, competitive programmers often define shorter names for datatypes and other parts of the code. We here discuss the method of code shortening in C++ specifically.Type names Using the 5 min read Like