Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

comments in code

Status
Not open for further replies.

Sedai

Programmer
Mar 4, 2001
158
US
I know it sounds like a dumb question, but do comments
// or /* ... */ contribute to the size of the code in some way. I would think that the compiler just ignores them and does not translate them.
So if I have two files with exactly the same code, but one is 50K and the other 100K due to comments, the resulting executable should be exactly the same size?
well, i can actually always try it. :)

thanks.
Avendeval


 
You're right, the compiler will ignore any comments and white space.

~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top