English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

A. //
B. /*
C. */
D. /**

2007-02-12 07:30:30 · 5 answers · asked by vtec 1 in Computers & Internet Programming & Design

5 answers

A

2007-02-12 07:33:50 · answer #1 · answered by rod 6 · 0 0

// This is a single line comment

This is common in many languages such as the C languages, PHP, Visual Basic

The other one is used to surround a comment so that /* everything inside the marks is a comment and will not affect the program
even if it spans more than one line */

good luck

2007-02-12 07:35:01 · answer #2 · answered by Lobo Mike 2 · 0 0

A does (C++)

B may or may not (it opens a comment in C and if the comment is closed on the same line with */ then it technically opens a single line comment :-)

C does not (it closes a comment in C).

D may or may not. (Will be treated in C the same as /* -- see B above).

2007-02-12 07:35:38 · answer #3 · answered by David B 3 · 0 0

It is A. Same answer goes to most Algor descendants, including C++ and Java and C#, even though the question obviously is Java.

2007-02-12 08:32:51 · answer #4 · answered by Andy T 7 · 0 0

only A does

B can be single line comment but it has to end with c.

D as above

2007-02-12 07:35:05 · answer #5 · answered by mamu 2 · 0 0

fedest.com, questions and answers