3. Similarities between c and c++
• Code structure of both the language are same.
• The compilation of both the language are similar.
• Thy share the same basic syntax .Nearly all of C’
operators and keywords are also present in c++
and do the same thing.
4. • C++ has the slightly extended grammer than C,
but the basic grammer are same.
• Basic memory Model of both is very close to the
hardware.
• Same notions of sack, heak, file scope and static
variables is present in both languages
5. Uses of c++
C++ (or “C-plus-plus”) is a general-purpose
programming and coding language. C++ is used in
developing browsers, operating systems, and
applications, as well as in-game programming,
software engineering, data structures, etc.
6. DIFFERENCES BETWEEN C LANGUAGE AND C++
C LANGUAGE
C language support function
programing .
C is a middle level Language
IN C Language :-
Scanf()--- Used for input.
Printf()--- Used for Output.
C++ LANGUAGE
C++support OOPS(Object
Oriented Programming language)
concept.
C++ is the high level Language
In C++ Language:-
Cin>>--- Used for input.
Cout<<--- Used for output.
7. In C we can not use inheritance.
File extension C is .C.
C is a subset of C++.
C follows the top-down approach.
C does not support function
overloading.
C programs are divided into
procedures and modules.
C doesn't have provide the
feature of namespace
But, In C++ we can use inheritance.
File extension C++ is .CPP.
C++ is a superset of C.
C++ follows the bottom-up
approach.
C++ support function overloading.
Ok thanks
C++ program are divided into
function and class
C++ support the feature of
namespace