// For single line comment
/* For block of lines comment ... ... */
Return Value: During the execution of code, comments are ignored.
Example 1: This example illustrates the single-line comment using //.
Example 2: This example illustrates the multi-line comment using /* … */
Explanation: The sum is calculated but not displayed because the code to display the sum is written in a comment and will not be displayed
Please Login to comment...