If-else statement comments [closed]
- by Jin35
Possible Duplicate:
What is a good way to comment if-else-clauses?
What is the best way to write comments for if-else statement? There is possible ways:
A.
//first comment
if (condition) {
...
}
//second comment
else {
...
}
B.
if (condition) { //first comment
...
}
else { //second comment
...
}
C.
if (condition) {
//first comment
...
}
else {
//second comment
...
}
Which one is the best, or there is some better possibilities?