R4R Team working to provide free of cost for experienced and freshers

Tutorials | Examples|Interview Questions and Answers|Java Tutorials| C Tutorials | C++ Tutorials | Spring Tutorials| Hibernate Tutorials | JSP Tutorials | Servelets Tutorials| C# Tutorials | PHP Tutorials etc , Basics | Download Software | Data Types | Variables | Constant | Storage & Classes | Operators | Decisions Making | Loops | Functions| Numbers | Arrays | Pointers | String | Datastructure | Expressions | Preprocessor Statement | I/O | Exception Handling | OOPs Tutorial | Classes and object |C++ Inheritance Overloading | Polymorphism | Abstraction | Encapsulation | Interfaces | Multithreading etc

C++ language

Difference Between C and C++
Previous Home Next
C C++
C is not an object oriented language (C is a procedural programming language), C++ is an object oriented language.
In C we use scanf () as standard input function for output in c we use printf() while in c++ we use cin>> for input,like in c++ we use cout <<as a output function.
C does not have the concept of classes and object.C does not have namespaces while C++ have namespace
Function overloading is not supported by C. C++ also supports function overloading.
C does not have reference variables while C++ uses reference variables.
C does not support operators overloading. C++ supports operators overloading,
C have top down approach while in C++ have bottom up approach.
Data is not structured in C, while data is structured in C++.
In C #include <stdio.h>is used as header file,, in C++ #include<iostream.h> is used as header file.
C does not support C++ programs but C++ support the C program.
C is low level language while C++ is high level language.
Previous Home Next