This answer regarding header and source files says:
The compiler sees one big source (.cpp) file with its headers properly included. The source file is the compilation unit that will be compiled into an object file.
Is it possible to view somehow this big .cpp (.c) file? If yes, how to do it on both Linux (gcc) and Windows (VisualStudio) platforms.
PS: I've tried /P option in Visual Studio (Right-click on the file on the Solution Explorer, goto Properties; Configuration Properties -> C/C++ -> Preprocessor -> Preprocess to a File -> [YES /P]) but I've obtained several *.i files which no more looked like c++ (maybe it is c++ but with many templates, definitions for memory allocations etc.). The answer I was referring to was talking about "one big .cpp file". So I've assumed that only #include
directives will be replaced with corresponding files, or am I wrong and the *.i output is what I was asked for?