The B language (see link).
for c language it is .c and for c++ it is .cpp
The extension of c program is ".c".
The fundamental difference is that in C++ object-oriented programming (OOP) was added. C is a procedural language (that means. top-down structure design), where as C++, which is an extension of C itself, is an object oriented language.
c language is the structure oriented language and c does not follows the object oriented paradigms . c++ obeys the all object oriented language characteristics ========== C++ is a set of extensions to the C language to allow some (not all) principles of object-oriented programming to be used. Originally, C++ was a front end pre-processor for C and C++ compilers will translate C language functions.
from the extension of your file.If it has an extension of .cpp then it is a c++ programIf it's extension is .c, then it is a C program.
G++ is the Gnu compiler's extension for C++. It is not a different language. It simply allows you to use the GCC compiler to write C++ code.
Most C programmers use a .c file name extension for executable C source code, and .h or no filename extension at all for source files containing definitions and interface specifications, so-called header files.Some C compilers inspect the file name extension and draw conclusions, but most will accept almost any filename convention.Other common filename extensions used in the C family of programming languages are .cpp and .hpp (C++) and .cs (C#). On operating systems with case-sensitive file names, these extensions are generally expected to be in lower case.
Not sure what you mean by "new" headers. You probably mean the C++ standard library headers, however these headers have been in existence since before 1998 when the language first became standardised. Prior to that, C++ used the C standard library headers, all of which have a .h extension. The C++ standard library headers have no file extension.
C++ Extension Name is... Syntax is: File Name.extension name. Ex: ankit.cpp
Adding additional functionality
C-language was derived from B-language.
The .cpp extension is merely conventional; it is not required by the C++ standard. You can actually use any file extension you wish.