Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP C/HP-UX Reference Manual: Workstations and Servers > Chapter 2 Lexical Elements

Comments

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

You can include comments to explain code in your program by enclosing the text with /* and */ characters. If the /* character sequence is located within a string literal or a character constant, the compiler processes them as "normal" characters and not as the start of a comment.

You cannot nest comments. To comment blocks of code, enclose the block within the #if and #endif statements, as shown below:

#if 0
.
.
.
  code
.
.
.
#endif
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.