+ 1
is it necessary to add a comment to print a text
EX :- cout<<Suvan is enough to print a word then why should we use //print "Suvan" cout<<suvan
2 Answers
+ 2
A comment will NOT print out any code at all, it's unrelated. //This is a comment, and noone will know it even exists.
All a comment does is make code easier to read, as opposed to just random letters and symbols, numbers, and things of the like.
+ 1
No it is not necessary to add a comment to print a string. However, a string should be between double quotes.