+ 2

In c++ programming Is it necessary to write comments?

C++

20th Oct 2019, 1:28 AM
Preeti
Preeti - avatar
6 Answers
+ 6
Hi Preeti. Code needs to be EXPLICATE. Comment are helpful to make what certain parts the code do. Comments help speed up the process of understand your code in the future, and when others view your code.
20th Oct 2019, 2:21 AM
Manual
Manual - avatar
+ 2
It is never necessary in any programming language to write comments, but it is recommended for long codes.
20th Oct 2019, 1:30 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
In long run, sometimes when you come back to add more features or modify some old features of code, if comments would have been there, it would make lot easier to revist code quickly with banging the head. Imagine if no comments were put in code where, with your own code you won't be able to recall what you had done. You will keep scratching your head to recall all logic that you had written. So a wise coder will always put comments to save his and others time 😃
20th Oct 2019, 2:32 AM
Popat
Popat - avatar
+ 1
It's not necessary but you can explain the code what it does using comment
20th Oct 2019, 3:22 AM
Mohammed Qadir Khan
+ 1
comments are necessary for every programming languages.when u write a lengthy code .u need to describe every code functionality ..for this purpose we use comments . comments are very important it helps u in programming
17th Dec 2019, 9:12 AM
David Khan
David Khan - avatar
0
no
22nd Oct 2019, 3:47 PM
Aditya Nandan
Aditya Nandan - avatar