SlideShare a Scribd company logo
1 of 11
LOADING ....
ICT Project
Touch Screen
Muhammad Mohsin :03-134222-070
Murtaza Alam :03-134222-086
Syed Zain-ul-Abideen:03-134222-106
Ibrahim :03-134222-106
Group Members
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.
• 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
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.
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.
 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
C - language
C++ LANGUAGE
Code of C language
Code of C++ Language

More Related Content

Similar to Comparison between C and C++

Similar to Comparison between C and C++ (20)

Introduction to CPP or C++
Introduction to CPP or C++Introduction to CPP or C++
Introduction to CPP or C++
 
Understanding C and its Applications.pdf
Understanding C and its Applications.pdfUnderstanding C and its Applications.pdf
Understanding C and its Applications.pdf
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Part 1
Part 1Part 1
Part 1
 
C++ language basic
C++ language basicC++ language basic
C++ language basic
 
Lecture01-Introduction-to-C-programming-converted (4).pptx
Lecture01-Introduction-to-C-programming-converted (4).pptxLecture01-Introduction-to-C-programming-converted (4).pptx
Lecture01-Introduction-to-C-programming-converted (4).pptx
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Programming in C
Programming in CProgramming in C
Programming in C
 
INTRODUCTION TO C LANGUAGE.pptx
INTRODUCTION TO C LANGUAGE.pptxINTRODUCTION TO C LANGUAGE.pptx
INTRODUCTION TO C LANGUAGE.pptx
 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptx
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
C_Programming_Notes_ICE
C_Programming_Notes_ICEC_Programming_Notes_ICE
C_Programming_Notes_ICE
 
Chapter 1 Introduction to C .pptx
Chapter 1 Introduction to C .pptxChapter 1 Introduction to C .pptx
Chapter 1 Introduction to C .pptx
 
Intro of C
Intro of CIntro of C
Intro of 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
 
Object oriented programming 7 first steps in oop using c++
Object oriented programming 7 first steps in oop using  c++Object oriented programming 7 first steps in oop using  c++
Object oriented programming 7 first steps in oop using c++
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
C programming introduction
C programming introductionC programming introduction
C programming introduction
 
Bsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c languageBsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c language
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 

Comparison between C and C++

  • 2. Muhammad Mohsin :03-134222-070 Murtaza Alam :03-134222-086 Syed Zain-ul-Abideen:03-134222-106 Ibrahim :03-134222-106 Group Members
  • 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
  • 10. Code of C language
  • 11. Code of C++ Language