+ 3
Do comments use disk space?
If I have thousands of lines of code, heavily commented, will the comments effect the program size
4 Réponses
+ 5
Commented out lines of the code doesn't affect on the exe file size because all comments are discarded at the compilation stage, but since the source code is a plain text file, adding characters (whether comments or executable codes) to the file will increase the size of the source code file stored on the disk.
0
noo
0
since system has to remember the commented sentence hence acquire some memory in the disk.
- 3
yes