The C and C++ programming language environments. Modern C compilers compile C and C++ source code. Although C++ has more rigid syntax and more options than C, the compiler recognizes which language the program is written in based on its file extension (.C for C and .CPP for C++) and applies the rules accordingly. See
C.