Question: I was reading another question pertaining the efficiency of two lines of code, and the OP said that he looked at the assembly behind the code and both lines were identical in assembly. Digression aside, how could I view the assembly code created when a program is compiled.

I'm using Microsoft's Visual C++, but I would also like to know if it's possible to view the assembly behind code written in Visual Basic.

So, how do I view the assembly code behind a program written in higher level languages like C++ and Visual Basic?

Answer: 
In Visual C++ the project options under, Output Files I believe has an option for outputing the ASM listing with source code. So you will see the C/C++ source code and the resulting ASM all in the same file.
Using Visual Studio 6.0

Click on Menu item "Project"

Click on "Settings"

Select tab header C/C++

Change "Category" to "Listing files"

Under "Listing file type" change the combobox from "No listing" to "Assembly with machine code"

Assembly source code files will appear in "Release" folder as .cod files