[email protected] wrote:
> --- In [ mailto:c-prog%40yahoogroups.com [EMAIL PROTECTED],
> "johmgolden051500" <[EMAIL PROTECTED]>
> wrote:
>> --- In [ mailto:c-prog%40yahoogroups.com [EMAIL PROTECTED], "John
> Monte" <johns_goldens@> wrote:
>> Ok if you type in the following 
>> void main ()
>> {
>> bit
>> } 
>> The word bit will turn blue which indicate it is some type
>> of data type. I have one book that it shows is as bit 1 bit
>> long and the comments reads it as boolean value but it does
>> not shows any example of it. What I am looking to do is
>> the following.
>> unsigned char i;
>> unsigned char flag; // using the varible each flag bit
>> /* to indicate a flag */
> 
> First it's a very bad idea to use C++ style comments in C programs; if
> you program in C++, then use the // style, but if you work with C,
> then solely use /* and */ to enclose comments, nothing else.
> 

I write C and use // for comments and I see nothing wrong with that.

I used to use /* ... */ back in the day but I switched when C compilers began 
allowing //.


Reply via email to