what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / namrata gupta
The main difference between c and c++ is that " C is a
structured programming language while C++ is an object
programming language and also we have templates in C++ that
is not the case in C
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ajit kumar singh
The basis difference that c is structural Language and C++
is Object Oriented language addition with that C++ is super
set of c.
So C++ having all functionality that c have with addition
with Object Oriented functionality i.e Classes ,Operator
overloading etc.
So all other difference born from to fulfill these requirements.
So some c functionality is modify in C++ and some new added.
for example.
Modified :
1.In use of enum
2.In use of function
3.In size of Array
4. Type comaptibility
5.In use of Void pointer
6.Scope of Variable
7.Place of variable declartion
etc... You can find many more thing
Added new
1. Class
2. Reference variable
3.Dynamic initialization of variable
4. some more operator
5. new data type
6. new type of function (virtual ,friend,inline etc)
there are lot of minor difference and new...just check with
some good book....
but please don't pur misleading answer..
1.Class
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / megha sisode
C++ uses NAMESPACE which avoid name collisions. For
instance, two students enrolled in the same university
cannot have the same roll number while two students in
different universities might have the same roll number. The
universities are two different namespace & hence contain
the same roll number(identifier) but the same university
(one namespace) cannot have two students with the same roll
number(identifier)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / t.saranya
c is structured programming language but c++ is object oriented programming language.
data is not secured in but c++ is data's are secured.
c does not support the c++program,but c++ support the c program.
c is low level language,but c++ is high level language.
c++ support operator overloading,c does not support.
c is top down,c++ is bottom up,
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vishu
c is procedure oriented programming while c++ is object oriented programming,in c we use top to bottom approach and in c++ we use bottom to up approach
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / parvati
In "C" writting in class concept is not provided where as in
"C++" all the data members and member functions of similar
or dissimilar datatypes will be written.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / c.rani
c is not object oriented
c++ is object oriented.
c is collections of functions
c++ is a collection of classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / adu sharma
There is no data hiding in c
but in c++ there is data hiding
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / riddhi
c is d structed oriented lang and c++ is an object oriented
lang .
both have different i/o functions..
c doesn't hv classes and objects at all..
In c++ there is inheritance ....
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vivek sagar jaiswal
*c is the procedure oriented programing.
c++ is the object oriented programing.
*c is the low level language.
c++ is the high level language.
*c is top-down approach
c++ is bottom-top approach.
*c is structured design
c++ is object oriented design .
*c does not deal with real world problems properly
eg. Maintaining a database.
while c++ deals with real world problems.
*In c we declare variable at the start of block...
In c++ we can declare it any where.....
*c the data can pass through the fuction to fuction.
Data is hidden and can’t be accessed by the external function.
*We can’t work with Class in C .
We can work with Class in C++ .
*c is not required acces
specifiers .
C++ is required acces
Specifiers .
*c has not inheritance concept .
c++ has inheritance concept .
*C can't support
of all function of C++.
C++ can support of all function of C
| Is This Answer Correct ? | 0 Yes | 0 No |
What is use of overloading?
what is graphics
What are classes oop?
Why static Function is used in C++?
Name an advantage of linked list over array?
What are the valid types of data that the main () can return in C/C++ language
what is virtual function?
26 Answers Aspire, HP, Infosys, RoboSoft, TCS,
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Why static functions always uses static variables?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
What is object-oriented programming? Webopedia definition
What's the full form of STL?