On Sun, 18 Oct 2009 23:30:49 -0400, Robert Huff <[email protected]> wrote: > > Glen Barber writes: > > > >> // redo, skip TAGS > > > > > > Is this C or C++ source code? I always thought // was C++ > > > specific... > > > > > > > "//" comments are recognized by both C and C++. > > How about "... are recognized by both C++ and more recent versions > of C."?
That's what I thought. In fact, I *had* C programs containing the // comments, but they failed to compile. After changing the // to /* ... */ it worked. Maybe that's not an issue anymore, but I've been told by a long-time C programmer that // should be kept out of C code for maximum compatibility. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"
