The compiler in C ignores all text from a _________ until the end of a line.

Options
- /
- */
- **
- //


CORRECT ANSWER : //

Discussion Board
Comment in C

// used for single line comment
/* */ used for multiple line comment

Deepal 03-3-2017 04:40 AM

Comments -

Using comments compiler ignores line of text or multiple line of text.
These are the non-executable code.

Single line comment ignore one line using symbol “//”.
Multi-line comments starts with “ /* ” and end with “ */ ”.

Sapna 02-17-2017 05:46 AM

Comment

Answer : //

In C language "//" (double slash) is used for single line comment &
"/* .. */" is used for multiline comments.

Jayesh Sonar 02-24-2015 02:41 AM

Comments in C

- Multiline comments in C are written between /* and */.
- Single line comments are written starting with //.

Aparna 07-5-2013 04:14 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement