* Single-Line Comments
/* Handle the condition. */
* Trailing Comments if (a == 2) { return TRUE; /* special case */ } else { return isPrime(a); /* works only for odd a */ * End-Of-Line Comments if (foo > 1) { // Do a double-flip. ... } else { return false; // Explain why here. } //if (bar > 1) { // // // Do a triple-flip. // ... //} //else { // return false; //} * Documentation Comments /** * The Example class provides ... */
No comments:
Post a Comment