Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the main difference between c and c++?

Answer Posted / saraswathi

Difference between c and C++

C C++

1. C is a procedure oriented programming C++ is a object
oriented programming

2. C uses #include<stdio.h> C++ uses #include<iostream.h>

3. In C main focus is on functions In C++ main focus is on
data rather than functions. Data is not freely moved around
the system rather the functions exists in the object are the
only means by which the data can be accessed

4. In C No Data security In C++ data is hidden and is
secure from unauthorised access

5. In C there is no concepts like encapsulation,
polymorphism , inheritance etc. C++ provide encapsulation,
polymorphism, inheritance etc.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and types?

1107


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2158


What are the types of abstraction?

1077


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2107


What is difference between oop and pop?

1168


What is abstraction in oops?

1048


Write a c++ program to display pass and fail for three student using static member function

3400


Why interface is used?

1020


What is encapsulation in oop?

1054


program for insertion ,deletion,sorting in double link list

2693


What is overriding vs overloading?

1064


How do you achieve polymorphism?

1081


any one please tell me the purpose of operator overloading

2401


write knight tour problem which is present in datastructure

2655


What is abstract class in oops?

1026