Use of C99 features

Stefan Bellon sbellon at sbellon.de
Wed Oct 28 20:10:48 CET 2015


On Wed, 28 Oct, Robert J. Hansen wrote:

> > Please keep in mind that C and C++ are two different languages -
> > there are subtle difference and thus using a C++ compiler for C
> > code may work but is not suggested.  
> 
> Yes and no.  Bjarne Stroustrup himself has declared that every program
> in K&R's _The C Programming Language_ is a valid, well-formed C++
> program.  They are definitely different languages, but most sane C90
> code will compile without complaint in C++.

As soon as you use C++ keywords as identifiers in C, it's over. ;-)

Greetings,
Stefan

-- 
Stefan Bellon



More information about the Gnupg-devel mailing list