1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
//line comment
/* block comment */
/* block comment on
multiple lines */
/* //line comment within block comment */
// /*block comment within line comment */
// using open-block-comment symbol alone on line comment /*
/* /* nested block comment */ */
DISPLAY "this line of code is a test".
DISPLAY "//this line of code is a test".
DISPLAY "/* this line of code is a test */".
// using close-block-comment symbol alone on line comment */
// /* improperly closed block comment within line comment */ */
/*
//line comment 1 in block comment
//line comment 2 in block comment
//line comment 3 in block comment
*/
/*
block comment text
//line comment text
/* inner block comment text*/
*/
DISPLAY "This is a open-block-comment symbol /*".
DISPLAY "This is a close-block-comment symbol */".
//* line comment plus * looks like open-block-comment
DISPLAY "this line of code is a test".
/*display statement within block comment
DISPLAY "this is a string".
*/
DISPLAY "//line comment within string".
DISPLAY "/* //line comment within block comment within string */".
/* Improperly closed block comment */ */
DISPLAY "this line of code is a test".
DISPLAY "line comment with leading whitespace". // this is a line comment
DISPLAY "line comment without leading whitespace".// this is not a line comment
|