SlideShare a Scribd company logo
1 of 17
C, OBJECTIVE-C & C++
COMPARATIVE STUDY OF THE LANGUAGES
By
Mr. V. VEERANAN
M.Sc. Computer Science., Dip. in Yoga.,
Government Arts College, Melur – 625 106.
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Basic
C Imperative (Procedural) Structured
Objective-C Reflective, Class-based object oriented
C++
Multi-Paradigm, Procedural, Object-
Oriented, Functional Generic
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Appeared in
C 1972
Objective-C 1983
C++ 1985
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Designed By
C Dennis Ritchine
Objective-C Brad Cox & Tom Love
C++ Bjarne Stroustrup
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Developer
C
Dennis Ritchite & Bell Labs (creators);
ANSI X3J11 (ANSI C);
ISO/IEC JTC1/SC22/WG14(ISO C)
Objective-C Apple
C++
Bjarne Stronestrup Bell Labs
ISO/IECJTC1/SC22/WG21
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Approach Used
C Top down approach
Objective-C ---
C++ Bottom up approach
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
File Name Extension
C .h, .c
Objective-C .h, .m, .mm
C++ .h, .hh, .cpp, .hpp, .cxx, .c++
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Syntax
C Very Complex
Objective-C Easiest
C++ Moderate
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Inheritance Feature
C No such feature
Objective-C
Supports all types of inheritance
excluding multiple inheritance
C++ Supports all types of inheritance
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Emphasis on
C Functions
Objective-C Both (function & Data)
C++ Data
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Function Declaration
C
Functions can be declared at the point of
use
Objective-C
Totally class-based so function are
declared in the classes
C++
Functions must be prototyped before
main
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Concept of overloading
C Doesn’t Support overloading
Objective-C Supports overloading
C++ Supports Overloading
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Header Files
C Need to include them
Objective-C No need
C++ Need to include them
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Concept of garbage collection
C For de-allocating memory free( ) is used
Objective-C Automatic garbage collection
C++
For de-allocating memory delete ( ) is
used
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Keywords
C 32
Objective-C 12
C++ 98
C, Objective-C & C++
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga
Used of return keyword
C
Main( ). doesn’t automatically returns
zero (0)
Objective-C No concept of main ( ) & return
C++ Main ( ) automatically return zero(0)
Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga

More Related Content

More from CUO VEERANAN VEERANAN

Lab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdfLab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdfCUO VEERANAN VEERANAN
 
Lab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdfLab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdfCUO VEERANAN VEERANAN
 
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.pptMULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.pptCUO VEERANAN VEERANAN
 
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...CUO VEERANAN VEERANAN
 
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...CUO VEERANAN VEERANAN
 
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...CUO VEERANAN VEERANAN
 
1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of ComputerCUO VEERANAN VEERANAN
 
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical IndustryCUO VEERANAN VEERANAN
 
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.pptCUO VEERANAN VEERANAN
 
1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt
1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt
1.1.5 Terms related to Computer & 1.1.5.1 Hardware.pptCUO VEERANAN VEERANAN
 
1.1.3 Applications of Computer & 1.1.4 Advantages of Computer
1.1.3 Applications of Computer & 1.1.4 Advantages of Computer1.1.3 Applications of Computer & 1.1.4 Advantages of Computer
1.1.3 Applications of Computer & 1.1.4 Advantages of ComputerCUO VEERANAN VEERANAN
 
Java & C++ Comparative Study of the Languages
Java & C++ Comparative Study of the LanguagesJava & C++ Comparative Study of the Languages
Java & C++ Comparative Study of the LanguagesCUO VEERANAN VEERANAN
 

More from CUO VEERANAN VEERANAN (20)

Lab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdfLab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdf
 
Lab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdfLab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdf
 
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.pptMULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
 
Relational Algebra.ppt
Relational Algebra.pptRelational Algebra.ppt
Relational Algebra.ppt
 
DS Unit I to III MKU Questions.pdf
DS Unit I to III MKU Questions.pdfDS Unit I to III MKU Questions.pdf
DS Unit I to III MKU Questions.pdf
 
Acharya Vinoba Bhave.ppt
Acharya Vinoba Bhave.pptAcharya Vinoba Bhave.ppt
Acharya Vinoba Bhave.ppt
 
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
 
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
 
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
 
1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer
 
1.1.6 Characteristics of Computer
1.1.6 Characteristics of Computer1.1.6 Characteristics of Computer
1.1.6 Characteristics of Computer
 
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
 
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
 
1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt
1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt
1.1.5 Terms related to Computer & 1.1.5.1 Hardware.ppt
 
1.1.3 Applications of Computer & 1.1.4 Advantages of Computer
1.1.3 Applications of Computer & 1.1.4 Advantages of Computer1.1.3 Applications of Computer & 1.1.4 Advantages of Computer
1.1.3 Applications of Computer & 1.1.4 Advantages of Computer
 
Java & C++ Comparative Study of the Languages
Java & C++ Comparative Study of the LanguagesJava & C++ Comparative Study of the Languages
Java & C++ Comparative Study of the Languages
 
C, Objective C & C++ History
C, Objective C & C++ HistoryC, Objective C & C++ History
C, Objective C & C++ History
 
Dutch Disease
Dutch DiseaseDutch Disease
Dutch Disease
 
Dharamashala Declaration.ppt
Dharamashala Declaration.pptDharamashala Declaration.ppt
Dharamashala Declaration.ppt
 
SOVA Virus.ppt
SOVA Virus.pptSOVA Virus.ppt
SOVA Virus.ppt
 

Recently uploaded

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 RajagopalEADTU
 
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 PDFVivekanand Anglo Vedic Academy
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
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.pptxCeline George
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
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 17Celine George
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 

Recently uploaded (20)

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
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
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
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
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
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
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
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 

C, Objective C & C++ Comparative Study of the Languages

  • 1. C, OBJECTIVE-C & C++ COMPARATIVE STUDY OF THE LANGUAGES By Mr. V. VEERANAN M.Sc. Computer Science., Dip. in Yoga., Government Arts College, Melur – 625 106.
  • 2. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Basic C Imperative (Procedural) Structured Objective-C Reflective, Class-based object oriented C++ Multi-Paradigm, Procedural, Object- Oriented, Functional Generic
  • 3. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Appeared in C 1972 Objective-C 1983 C++ 1985
  • 4. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Designed By C Dennis Ritchine Objective-C Brad Cox & Tom Love C++ Bjarne Stroustrup
  • 5. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Developer C Dennis Ritchite & Bell Labs (creators); ANSI X3J11 (ANSI C); ISO/IEC JTC1/SC22/WG14(ISO C) Objective-C Apple C++ Bjarne Stronestrup Bell Labs ISO/IECJTC1/SC22/WG21
  • 6. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Approach Used C Top down approach Objective-C --- C++ Bottom up approach
  • 7. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga File Name Extension C .h, .c Objective-C .h, .m, .mm C++ .h, .hh, .cpp, .hpp, .cxx, .c++
  • 8. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Syntax C Very Complex Objective-C Easiest C++ Moderate
  • 9. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Inheritance Feature C No such feature Objective-C Supports all types of inheritance excluding multiple inheritance C++ Supports all types of inheritance
  • 10. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Emphasis on C Functions Objective-C Both (function & Data) C++ Data
  • 11. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Function Declaration C Functions can be declared at the point of use Objective-C Totally class-based so function are declared in the classes C++ Functions must be prototyped before main
  • 12. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Concept of overloading C Doesn’t Support overloading Objective-C Supports overloading C++ Supports Overloading
  • 13. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Header Files C Need to include them Objective-C No need C++ Need to include them
  • 14. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Concept of garbage collection C For de-allocating memory free( ) is used Objective-C Automatic garbage collection C++ For de-allocating memory delete ( ) is used
  • 15. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Keywords C 32 Objective-C 12 C++ 98
  • 16. C, Objective-C & C++ Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga Used of return keyword C Main( ). doesn’t automatically returns zero (0) Objective-C No concept of main ( ) & return C++ Main ( ) automatically return zero(0)
  • 17. Mr. V.Veeranan, M.Sc. Computer Science, Dip. in Yoga