google407ec42f1ae5ff0e.html
top of page

DIFFERENCE BETWEEN C AND C++

Writer's picture: Amrit SinghAmrit Singh

Following are some differences between C and C++



  • C++ is regarded as an intermediate-level language. It comprises a combination of both high- level and low-level language features. C++ is an extension to C programming language. The difference between the two language can be summarized as follows:


  • The variable declaration in C, must occur at the top of the function block and it must be declared before any executable statement. In C++ variables can be declared anywhere in the program.


  • In C++ we can change the scope of a variable by using scope resolution operator. There is no such facility in C language.


  • C is a procedure language and C++ is an object oriented language.


  • C allows a maximum of 32 characters in an identifier name whereas C++ allows no limit on identifier length.


  • C++ is an extension to C language and allows declaration of class, while C language does not allow this feature.


  • C++ allows inheritance and polymorphism while C langrage does not.

23 views1 comment

Recent Posts

See All

1 Comment


Amrit Singh
Amrit Singh
Sep 22, 2021

This is helpfull for me thankyou sir😎

Like

Facilities-:
One to one  online  / Offline Class
Individual training 
Corporate Training
E-Certificate for each course
Life time video accessible
E-Books

About us-:
Fin Computer Class
Sector 107, Noida  U.P.
M-: 9871715299
E: fincomputerclass@gmail.com
W-: www.computerclass.co.in
W-: www.it402.com
Y-:www.youtube.com/yka39

All Rights Reserved @ fin computer class     Design & Developed by Yatendra Kumar Awana

bottom of page