Explanation:
The difference between c and c++ are given below
(1) C does not support object oriented programming structure while c++ supports object oriented programming structure.
(2) C does not support namespace concept while c++ support namespace concept
(3) C has a procedural language it means it follow top down approach while C++ is object oriented it means it follow bottom up approach
(4) C does not support virtual function concept while C++ support virtual function concept
( 5) The programming structure of c language is given below
#include<stdio.h> // header file
void main() //main method
{
//statement
}
Programming structure of C++
#include<iostream>
// header file
using namespace std; // namespace
void main() // main method
{
// statement
}
If anyone know C, will it be not hard to learn C++ because only the syntax will change but the logic of programming is not changed .The operator and most concept are similar in both the languages.