ๅฐŠๆ•ฌ็š„ ๅพฎไฟกๆฑ‡็Ž‡๏ผš1ๅ†† โ‰ˆ 0.046166 ๅ…ƒ ๆ”ฏไป˜ๅฎๆฑ‡็Ž‡๏ผš1ๅ†† โ‰ˆ 0.046257ๅ…ƒ [้€€ๅ‡บ็™ปๅฝ•]
SlideShare a Scribd company logo
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 (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
๏‚ž 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 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

C++ Programming Language
C++ Programming Language C++ Programming Language
C++ Programming Language
Mohamed Loey
ย 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
satvirsandhu9
ย 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
Qazi Shahzad Ali
ย 
Data types
Data typesData types
Data types
Zahid Hussain
ย 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
Abhishek Dwivedi
ย 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
srmohan06
ย 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
Muhammad Waqas
ย 
How to execute a C program
How to execute a C  program How to execute a C  program
How to execute a C program
Leela Koneru
ย 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
ABHISHEK fulwadhwa
ย 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
Mahender Boda
ย 
C presentation book
C presentation bookC presentation book
C presentation book
krunal1210
ย 
Clanguage
ClanguageClanguage
Clanguage
Vidyacenter
ย 
Constructors and Destructor in C++
Constructors and Destructor in C++Constructors and Destructor in C++
Intro to c++
Intro to c++Intro to c++
Intro to c++
temkin abdlkader
ย 
Functions in c language
Functions in c language Functions in c language
Functions in c language
tanmaymodi4
ย 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
Nilesh Dalvi
ย 
C++ programming
C++ programmingC++ programming
Learn C
Learn CLearn C
Learn C
kantila
ย 
Complete C++ programming Language Course
Complete C++ programming Language CourseComplete C++ programming Language Course
Complete C++ programming Language Course
Vivek chan
ย 
What are variables and keywords in c++
What are variables and keywords in c++What are variables and keywords in c++
What are variables and keywords in c++
Abdul Hafeez
ย 

What's hot (20)

C++ Programming Language
C++ Programming Language C++ Programming Language
C++ Programming Language
ย 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
ย 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
ย 
Data types
Data typesData types
Data types
ย 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
ย 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
ย 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
ย 
How to execute a C program
How to execute a C  program How to execute a C  program
How to execute a C program
ย 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
ย 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
ย 
C presentation book
C presentation bookC presentation book
C presentation book
ย 
Clanguage
ClanguageClanguage
Clanguage
ย 
Constructors and Destructor in C++
Constructors and Destructor in C++Constructors and Destructor in C++
Constructors and Destructor in C++
ย 
Intro to c++
Intro to c++Intro to c++
Intro to c++
ย 
Functions in c language
Functions in c language Functions in c language
Functions in c language
ย 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
ย 
C++ programming
C++ programmingC++ programming
C++ programming
ย 
Learn C
Learn CLearn C
Learn C
ย 
Complete C++ programming Language Course
Complete C++ programming Language CourseComplete C++ programming Language Course
Complete C++ programming Language Course
ย 
What are variables and keywords in c++
What are variables and keywords in c++What are variables and keywords in c++
What are variables and keywords in c++
ย 

Viewers also liked

Ppt of c++ vs c#
Ppt of c++ vs c#Ppt of c++ vs c#
Ppt of c++ vs c#
shubhra chauhan
ย 
C vs c++
C vs c++C vs c++
C vs c++
ZTE Nepal
ย 
difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#
Sireesh K
ย 
C++ vs C#
C++ vs C#C++ vs C#
C++ vs C#
sudipv
ย 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
jatin batra
ย 
Ppt of c vs c#
Ppt of c vs c#Ppt of c vs c#
Ppt of c vs c#
shubhra chauhan
ย 
C language ppt
C language pptC language ppt
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
C and C ++ Training in Ambala ! BATRA COMPUTER CENTREC and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
ย 
Discussing Fundamentals of C
Discussing Fundamentals of CDiscussing Fundamentals of C
Discussing Fundamentals of C
educationfront
ย 
Summer training in c++
Summer training in c++Summer training in c++
Summer training in c++
DUCC Systems
ย 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
Sangharsh agarwal
ย 
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTREC & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
ย 
PHP - Introduction to Object Oriented Programming with PHP
PHP -  Introduction to  Object Oriented Programming with PHPPHP -  Introduction to  Object Oriented Programming with PHP
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
ย 
Intro to C++ Basic
Intro to C++ BasicIntro to C++ Basic
Intro to C++ Basic
Shih Chi Lin
ย 
basics of C and c++ by eteaching
basics of C and c++ by eteachingbasics of C and c++ by eteaching
basics of C and c++ by eteaching
eteaching
ย 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ Language
Farid Hilal
ย 
Evolution of c# - by K.Jegan
Evolution of c# - by K.JeganEvolution of c# - by K.Jegan
Evolution of c# - by K.Jegan
talenttransform
ย 
String in programming language in c or c++
 String in programming language  in c or c++  String in programming language  in c or c++
String in programming language in c or c++
Samsil Arefin
ย 
Object Oriented Programming in PHP
Object Oriented Programming in PHPObject Oriented Programming in PHP
Object Oriented Programming in PHP
Lorna Mitchell
ย 
fundamentals of c
fundamentals of cfundamentals of c
fundamentals of c
Vijayalaxmi Wakode
ย 

Viewers also liked (20)

Ppt of c++ vs c#
Ppt of c++ vs c#Ppt of c++ vs c#
Ppt of c++ vs c#
ย 
C vs c++
C vs c++C vs c++
C vs c++
ย 
difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#
ย 
C++ vs C#
C++ vs C#C++ vs C#
C++ vs C#
ย 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
ย 
Ppt of c vs c#
Ppt of c vs c#Ppt of c vs c#
Ppt of c vs c#
ย 
C language ppt
C language pptC language ppt
C language ppt
ย 
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
C and C ++ Training in Ambala ! BATRA COMPUTER CENTREC and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
ย 
Discussing Fundamentals of C
Discussing Fundamentals of CDiscussing Fundamentals of C
Discussing Fundamentals of C
ย 
Summer training in c++
Summer training in c++Summer training in c++
Summer training in c++
ย 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
ย 
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTREC & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
ย 
PHP - Introduction to Object Oriented Programming with PHP
PHP -  Introduction to  Object Oriented Programming with PHPPHP -  Introduction to  Object Oriented Programming with PHP
PHP - Introduction to Object Oriented Programming with PHP
ย 
Intro to C++ Basic
Intro to C++ BasicIntro to C++ Basic
Intro to C++ Basic
ย 
basics of C and c++ by eteaching
basics of C and c++ by eteachingbasics of C and c++ by eteaching
basics of C and c++ by eteaching
ย 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ Language
ย 
Evolution of c# - by K.Jegan
Evolution of c# - by K.JeganEvolution of c# - by K.Jegan
Evolution of c# - by K.Jegan
ย 
String in programming language in c or c++
 String in programming language  in c or c++  String in programming language  in c or c++
String in programming language in c or c++
ย 
Object Oriented Programming in PHP
Object Oriented Programming in PHPObject Oriented Programming in PHP
Object Oriented Programming in PHP
ย 
fundamentals of c
fundamentals of cfundamentals of c
fundamentals of c
ย 

Similar to C vs c++

Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introduction
AKR Education
ย 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
Manoj Kumar
ย 
Part 1
Part 1Part 1
Part 1
Moatez Amairi
ย 
Summer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxSummer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptx
shokeenk14
ย 
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTERC++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
groversimrans
ย 
INTRODUCTION TO C LANGUAGE.pptx
INTRODUCTION TO C LANGUAGE.pptxINTRODUCTION TO C LANGUAGE.pptx
INTRODUCTION TO C LANGUAGE.pptx
MohammedtajuddinTaju
ย 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptx
Mugilvannan11
ย 
Programming languages
Programming languagesProgramming languages
Programming languages
www.myassignmenthelp.net
ย 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
RamaBoya2
ย 
Fundamentals of programming and problem solving
Fundamentals of programming and problem solvingFundamentals of programming and problem solving
Fundamentals of programming and problem solving
Justine Dela Serna
ย 
Programming in C
Programming in CProgramming in C
Programming in C
Rvishnupriya2
ย 
Programming in c
Programming in cProgramming in c
Programming in c
vishnu973656
ย 
6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala
Batra Computer Centre
ย 
Oops index
Oops indexOops index
Oops index
Hitesh Wagle
ย 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
c# usage,applications and advantages
c# usage,applications and advantages c# usage,applications and advantages
c# usage,applications and advantages
mohamed drahem
ย 
C.pdf
C.pdfC.pdf
C.pdf
5reality786
ย 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx
Suman Garai
ย 
1. Introduction to C++ and brief history
1. Introduction to C++ and brief history1. Introduction to C++ and brief history
1. Introduction to C++ and brief history
Ahmad177077
ย 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
Ankur Pandey
ย 

Similar to C vs c++ (20)

Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introduction
ย 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
ย 
Part 1
Part 1Part 1
Part 1
ย 
Summer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxSummer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptx
ย 
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTERC++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
ย 
INTRODUCTION TO C LANGUAGE.pptx
INTRODUCTION TO C LANGUAGE.pptxINTRODUCTION TO C LANGUAGE.pptx
INTRODUCTION TO C LANGUAGE.pptx
ย 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptx
ย 
Programming languages
Programming languagesProgramming languages
Programming languages
ย 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
ย 
Fundamentals of programming and problem solving
Fundamentals of programming and problem solvingFundamentals of programming and problem solving
Fundamentals of programming and problem solving
ย 
Programming in C
Programming in CProgramming in C
Programming in C
ย 
Programming in c
Programming in cProgramming in c
Programming in c
ย 
6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala
ย 
Oops index
Oops indexOops index
Oops index
ย 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
ย 
c# usage,applications and advantages
c# usage,applications and advantages c# usage,applications and advantages
c# usage,applications and advantages
ย 
C.pdf
C.pdfC.pdf
C.pdf
ย 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx
ย 
1. Introduction to C++ and brief history
1. Introduction to C++ and brief history1. Introduction to C++ and brief history
1. Introduction to C++ and brief history
ย 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
ย 

Recently uploaded

The basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptxThe basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptx
heathfieldcps1
ย 
(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"
MJDuyan
ย 
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
yarusun
ย 
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
biruktesfaye27
ย 
What are the new features in the Fleet Odoo 17
What are the new features in the Fleet Odoo 17What are the new features in the Fleet Odoo 17
What are the new features in the Fleet Odoo 17
Celine George
ย 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
ย 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Kalna College
ย 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
ย 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
MattVassar1
ย 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
BiplabHalder13
ย 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
ย 
Creating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptxCreating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptx
Forum of Blended Learning
ย 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
ย 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
shabeluno
ย 
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
Kalna College
ย 
How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17
Celine George
ย 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
ย 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
Friends of African Village Libraries
ย 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
ย 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Catherine Dela Cruz
ย 

Recently uploaded (20)

The basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptxThe basics of sentences session 8pptx.pptx
The basics of sentences session 8pptx.pptx
ย 
(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"
ย 
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
ย 
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
ย 
What are the new features in the Fleet Odoo 17
What are the new features in the Fleet Odoo 17What are the new features in the Fleet Odoo 17
What are the new features in the Fleet Odoo 17
ย 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
ย 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
ย 
Observational Learning
Observational Learning Observational Learning
Observational Learning
ย 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
ย 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
ย 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
ย 
Creating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptxCreating Images and Videos through AI.pptx
Creating Images and Videos through AI.pptx
ย 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
ย 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
ย 
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
ย 
How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17How to Create User Notification in Odoo 17
How to Create User Notification in Odoo 17
ย 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ย 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
ย 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
ย 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
ย 

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
  • 3.
  • 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
  • 6.
  • 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.
  • 12.
  • 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.
  ็ฟป่ฏ‘๏ผš