Thursday, February 01, 2007

 

Why C++ won't compile my C code or verse versa

This is a running list of stuff that I'll continue to update.

Why C code doesn't compile in C++?
1. Incrementing an enum is not allow in C++.



Why C++ code that uses only C syntax won't compile in C?
1. C doesn't allow the same const variable to be declared in multiple files unless it's static.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?