SlideShare a Scribd company logo
4
Most read
5
Most read
22
Most read
Name : Gaurav Badhan
CSE-N1-115307
Univ. Roll no : 1144352
Contents
 Introduction
  C language, C++ language

 Similarities
  Built-in data types, compiler preprocessors etc.

 Differences
  Basic , Data security, Processing approach etc.

 Conclusion
C vs c++
   C (pronounced as "see”) is a general-purpose
    computer programming language developed
    between 1969 and 1973 by Dennis Ritchie at
    the Bell Telephone Laboratories.

   Although C was designed for
    implementing system,it is also widely used for
    developing portable application software.

   C is one of the most widely used programming
    languages of all timeand there are very
    few computer architectures for which a
    C compiler does not exist.
   C++ (pronounced "cee plus plus") is a statically
    typed,free-foem, multi paradigm,compiled, general-
    purpose programming languauge. It is regarded as
    an intermediate-level language, as it comprises a
    combination of both high level and low level language
    features. It was developed by Biarne Stroustrup
    starting in 1979 at Bell labs as an enhancement to
    the C language. Originally named C with Classes,
    the language was renamed C++ in 1983, as a pun
    involving the increment operator.


   C++ is one of the most popular programming
    languages with application domains including
    systems software, application drivers, device drivers,
    embedded software, high-performance server and
    client applications
C vs c++
 same   built-in data types. e.g.
   same compiler       preprocessor
     handles #include & #define
     conditional preprocessing #if, #ifndef and #endef
   same built-in operators on primitive
    types (+-/*……)
   Same built-in control structures
    -if, for, while, switch ….etc




                                       For
            If
   must have a function names “main” to
    determine where the program starts.
    e.g. void main(),int main()

   functions are defined the same way.



   programs can be split up into separate
    files e.g. functions prototype & calling
    etc.
C vs c++
 C follows the procedural programming
  paradigm while C++ is a multi-paradigm
  language (procedural as well as object
  oriented)
 In case of C, importance is given to the
  steps or procedure of the program while
  C++ focuses on the data rather than the
  process.
  Also, it is easier to implement/edit the code
  in case of C++ for the same reason.
   In case of C, the data is not secured
    while the data is secured(hidden) in
    C++.



   This difference is due to specific OOP
    features like Data Hiding which are not
    present in C.
   C is a low-level language while C++ is a
    middle-level language.

   C is regarded as a low-level
    language(difficult interpretation & less
    user friendly) while C++ has features of
    both low-level(concentration on what is
    going on in the machine hardware) & high-
    level languages(concentration on the
    program itself) & hence is regarded as a
    middle-level language.vel language.
   C uses the top-down approach while
    C++ uses the bottom-up approach.


   In case of C, the program is formulated
    step by step, each step is processed
    into detail while in C++, the base
    elements are first formulated which then
    are linked together to give rise to larger
    systems.
   C is function-driven while C++ is object-
    driven.



   Functions are the building blocks of a C
    program while objects are building
    blocks of a C++ program.
   Overloading means two functions
    having the same name in the same
    program. This can be done only in C++
    with the help of Polymorphism(an OOP
    feature).

   C++ supports function overloading while
    C does not support.
   The NAMESPACE feature in C++ is absent in
    case of C.


   C++ uses NAMESPACE which avoid name
    collisions. For instance, two students enrolled
    in the same university cannot have the same
    roll number while two students in different
    universities might have the same roll number.
    The universities are two different namespace
    & hence contain the same roll
    number(identifier) but the same university(one
    namespace) cannot have two students with
    the same roll number(identifier).
   The standard input & output functions
    differ in the two languages



   C uses scanf() & printf() while C++ uses
    cin>> & cout<< as their respective input
    & output functions.
   C++ allows the use of reference
    variables while C does not.



   Reference variables allow two variable
    names to point to the same memory
    location. We cannot use these variables
    in C programming.
C++, as the name suggests is a superset of
C. As a matter of fact, C++ can run most of
C code while C cannot run C++ code.

Both C and C++ have their best place at
their own with ample similarities and
differences.
Although C++ is a Superset of C language
yet c has its own existence and C++ has
also its own place in software and program
development.
C vs c++

More Related Content

What's hot (20)

PPT
Variables in C Programming
programming9
 
PPT
Operators in C++
Sachin Sharma
 
PDF
Differences between c and c++
starlit electronics
 
PPSX
Break and continue
Frijo Francis
 
PPT
Operator Overloading
Nilesh Dalvi
 
PPTX
C++ presentation
SudhanshuVijay3
 
PPT
Constants in C Programming
programming9
 
PPTX
Data types in c++
Venkata.Manish Reddy
 
PPTX
Compiler vs interpreter
Paras Patel
 
PPTX
Decision statements in c language
tanmaymodi4
 
PPTX
Input output statement in C
Muthuganesh S
 
PPT
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
PPTX
INLINE FUNCTION IN C++
Vraj Patel
 
PPTX
Object Oriented Programming using C++(UNIT 1)
Dr. SURBHI SAROHA
 
PPT
friend function(c++)
Ritika Sharma
 
PPT
History of c
Shipat Bhuiya
 
PPSX
C++ Programming Language
Mohamed Loey
 
PPTX
Encapsulation C++
Hashim Hashim
 
PPTX
Inline function
Tech_MX
 
Variables in C Programming
programming9
 
Operators in C++
Sachin Sharma
 
Differences between c and c++
starlit electronics
 
Break and continue
Frijo Francis
 
Operator Overloading
Nilesh Dalvi
 
C++ presentation
SudhanshuVijay3
 
Constants in C Programming
programming9
 
Data types in c++
Venkata.Manish Reddy
 
Compiler vs interpreter
Paras Patel
 
Decision statements in c language
tanmaymodi4
 
Input output statement in C
Muthuganesh S
 
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
INLINE FUNCTION IN C++
Vraj Patel
 
Object Oriented Programming using C++(UNIT 1)
Dr. SURBHI SAROHA
 
friend function(c++)
Ritika Sharma
 
History of c
Shipat Bhuiya
 
C++ Programming Language
Mohamed Loey
 
Encapsulation C++
Hashim Hashim
 
Inline function
Tech_MX
 

Viewers also liked (20)

ODP
Ppt of c++ vs c#
shubhra chauhan
 
PPTX
C vs c++
ZTE Nepal
 
PPTX
difference between c c++ c#
Sireesh K
 
PPTX
C++ vs C#
sudipv
 
PPTX
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
jatin batra
 
ODP
Ppt of c vs c#
shubhra chauhan
 
PPTX
C language ppt
Ğäùråv Júñêjå
 
PPTX
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
PPTX
Discussing Fundamentals of C
educationfront
 
PDF
Summer training in c++
DUCC Systems
 
PPTX
Introduction Of C++
Sangharsh agarwal
 
PPTX
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
PPT
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
 
PPTX
Intro to C++ Basic
Shih Chi Lin
 
PPS
basics of C and c++ by eteaching
eteaching
 
PDF
History of C/C++ Language
Farid Hilal
 
PPTX
Evolution of c# - by K.Jegan
talenttransform
 
PPTX
String in programming language in c or c++
Samsil Arefin
 
PDF
Object Oriented Programming in PHP
Lorna Mitchell
 
PPTX
fundamentals of c
Vijayalaxmi Wakode
 
Ppt of c++ vs c#
shubhra chauhan
 
C vs c++
ZTE Nepal
 
difference between c c++ c#
Sireesh K
 
C++ vs C#
sudipv
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
jatin batra
 
Ppt of c vs c#
shubhra chauhan
 
C language ppt
Ğäùråv Júñêjå
 
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
Discussing Fundamentals of C
educationfront
 
Summer training in c++
DUCC Systems
 
Introduction Of C++
Sangharsh agarwal
 
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
 
Intro to C++ Basic
Shih Chi Lin
 
basics of C and c++ by eteaching
eteaching
 
History of C/C++ Language
Farid Hilal
 
Evolution of c# - by K.Jegan
talenttransform
 
String in programming language in c or c++
Samsil Arefin
 
Object Oriented Programming in PHP
Lorna Mitchell
 
fundamentals of c
Vijayalaxmi Wakode
 
Ad

Similar to C vs c++ (20)

PPTX
Unit 1 of c++ part 1 basic introduction
AKR Education
 
PPTX
Advantage and Disadvantages of C++ programming.pptx
phalapagol
 
PPTX
Introduction to C++
Manoj Kumar
 
PDF
Part 1
Moatez Amairi
 
PPTX
C++ language basic
Waqar Younis
 
PPTX
Summer training PPT Manasv Singharia.pptx
shokeenk14
 
PPTX
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
groversimrans
 
PPTX
INTRODUCTION TO C LANGUAGE.pptx
MohammedtajuddinTaju
 
PPTX
C Programming UNIT 1.pptx
Mugilvannan11
 
PPTX
Procedure Oriented programming Object Oriented programming Basic Concept of ...
Govt Engineering college badliya ajmer Rajasthan
 
PPTX
Programming languages
www.myassignmenthelp.net
 
PPTX
Introduction to C Programming Language
RamaBoya2
 
PPTX
Programming in C & Decision Making Branching
VishnuPriya810389
 
PPTX
Programming in C and Decision Making Branching
Rvishnupriya2
 
DOCX
Fundamentals of programming and problem solving
Justine Dela Serna
 
PPTX
Programming in c
vishnu973656
 
PPTX
Programming in C
Rvishnupriya2
 
PPTX
6 Week C++ Language Training In Ambala
Batra Computer Centre
 
PDF
Oops index
Hitesh Wagle
 
Unit 1 of c++ part 1 basic introduction
AKR Education
 
Advantage and Disadvantages of C++ programming.pptx
phalapagol
 
Introduction to C++
Manoj Kumar
 
C++ language basic
Waqar Younis
 
Summer training PPT Manasv Singharia.pptx
shokeenk14
 
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
groversimrans
 
INTRODUCTION TO C LANGUAGE.pptx
MohammedtajuddinTaju
 
C Programming UNIT 1.pptx
Mugilvannan11
 
Procedure Oriented programming Object Oriented programming Basic Concept of ...
Govt Engineering college badliya ajmer Rajasthan
 
Programming languages
www.myassignmenthelp.net
 
Introduction to C Programming Language
RamaBoya2
 
Programming in C & Decision Making Branching
VishnuPriya810389
 
Programming in C and Decision Making Branching
Rvishnupriya2
 
Fundamentals of programming and problem solving
Justine Dela Serna
 
Programming in c
vishnu973656
 
Programming in C
Rvishnupriya2
 
6 Week C++ Language Training In Ambala
Batra Computer Centre
 
Oops index
Hitesh Wagle
 
Ad

Recently uploaded (20)

DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
PPTX
10CLA Term 3 Week 4 Study Techniques.pptx
mansk2
 
PPTX
THE JEHOVAH’S WITNESSES’ ENCRYPTED SATANIC CULT
Claude LaCombe
 
PDF
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPT
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
PPTX
Introduction to Probability(basic) .pptx
purohitanuj034
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Constitutional Design Civics Class 9.pptx
bikesh692
 
PDF
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
PPTX
IDEAS AND EARLY STATES Social science pptx
NIRANJANASSURESH
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
10CLA Term 3 Week 4 Study Techniques.pptx
mansk2
 
THE JEHOVAH’S WITNESSES’ ENCRYPTED SATANIC CULT
Claude LaCombe
 
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
Introduction to Probability(basic) .pptx
purohitanuj034
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
Constitutional Design Civics Class 9.pptx
bikesh692
 
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
IDEAS AND EARLY STATES Social science pptx
NIRANJANASSURESH
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 

C vs c++

  • 1. Name : Gaurav Badhan CSE-N1-115307 Univ. Roll no : 1144352
  • 2. Contents  Introduction C language, C++ language  Similarities Built-in data types, compiler preprocessors etc.  Differences Basic , Data security, Processing approach etc.  Conclusion
  • 4. C (pronounced as "see”) is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories.  Although C was designed for implementing system,it is also widely used for developing portable application software.  C is one of the most widely used programming languages of all timeand there are very few computer architectures for which a C compiler does not exist.
  • 5. C++ (pronounced "cee plus plus") is a statically typed,free-foem, multi paradigm,compiled, general- purpose programming languauge. It is regarded as an intermediate-level language, as it comprises a combination of both high level and low level language features. It was developed by Biarne Stroustrup starting in 1979 at Bell labs as an enhancement to the C language. Originally named C with Classes, the language was renamed C++ in 1983, as a pun involving the increment operator.  C++ is one of the most popular programming languages with application domains including systems software, application drivers, device drivers, embedded software, high-performance server and client applications
  • 7.  same built-in data types. e.g.
  • 8. same compiler preprocessor  handles #include & #define  conditional preprocessing #if, #ifndef and #endef
  • 9. same built-in operators on primitive types (+-/*……)
  • 10. Same built-in control structures -if, for, while, switch ….etc For If
  • 11. must have a function names “main” to determine where the program starts. e.g. void main(),int main()  functions are defined the same way.  programs can be split up into separate files e.g. functions prototype & calling etc.
  • 13.  C follows the procedural programming paradigm while C++ is a multi-paradigm language (procedural as well as object oriented)  In case of C, importance is given to the steps or procedure of the program while C++ focuses on the data rather than the process. Also, it is easier to implement/edit the code in case of C++ for the same reason.
  • 14. In case of C, the data is not secured while the data is secured(hidden) in C++.  This difference is due to specific OOP features like Data Hiding which are not present in C.
  • 15. C is a low-level language while C++ is a middle-level language.  C is regarded as a low-level language(difficult interpretation & less user friendly) while C++ has features of both low-level(concentration on what is going on in the machine hardware) & high- level languages(concentration on the program itself) & hence is regarded as a middle-level language.vel language.
  • 16. C uses the top-down approach while C++ uses the bottom-up approach.  In case of C, the program is formulated step by step, each step is processed into detail while in C++, the base elements are first formulated which then are linked together to give rise to larger systems.
  • 17. C is function-driven while C++ is object- driven.  Functions are the building blocks of a C program while objects are building blocks of a C++ program.
  • 18. Overloading means two functions having the same name in the same program. This can be done only in C++ with the help of Polymorphism(an OOP feature).  C++ supports function overloading while C does not support.
  • 19. The NAMESPACE feature in C++ is absent in case of C.  C++ uses NAMESPACE which avoid name collisions. For instance, two students enrolled in the same university cannot have the same roll number while two students in different universities might have the same roll number. The universities are two different namespace & hence contain the same roll number(identifier) but the same university(one namespace) cannot have two students with the same roll number(identifier).
  • 20. The standard input & output functions differ in the two languages  C uses scanf() & printf() while C++ uses cin>> & cout<< as their respective input & output functions.
  • 21. C++ allows the use of reference variables while C does not.  Reference variables allow two variable names to point to the same memory location. We cannot use these variables in C programming.
  • 22. C++, as the name suggests is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code. Both C and C++ have their best place at their own with ample similarities and differences. Although C++ is a Superset of C language yet c has its own existence and C++ has also its own place in software and program development.