what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / s.kannigaarasu
C gives importance to procedure. That is functions rather
than data. The main function couldnot return a value. It is
dont support c++ programme.
C++ gives importance to object that is data. The main
function should return a value. It is support c programme.
Is This Answer Correct ? | 180 Yes | 41 No |
Answer / prakash kumawat
c is function or procedure oriented whereas c++ is object
oriented.it focus primariy on tht actions and events and
the programming model focuses on the logical assertions
that trigger execution of programme code whereas c++is
focusedon writingprogramas thet are more readable and
maintainable and helps the reuse of code by packing a group
of similar objects,inheritance and polymorphism. C was THE
C++ predecessor. A lot of c remains in c++.In c, the
result of applying the operator size to a character
constant. for example:- size of('c'),equalssize of (int).IN
c++,the expressionsize of('c'),returns size of(char).
Is This Answer Correct ? | 191 Yes | 58 No |
Answer / ravi pratap
c is low level language while c++ is sn high level language.
c++ is an extension of c language this means that you can
use not only the new features of c++ but can also use the c
programing on that. c++ is an object oriented while c is an
program oriented in which you can make new softwares.
Is This Answer Correct ? | 231 Yes | 109 No |
Answer / rakshana
c->does not provides features for easy programming
c++ ->provides polymorphism,inheritance,abstraction and
encapsulation for easy programming
c-> without classes
c++ -> c with classes
Is This Answer Correct ? | 44 Yes | 9 No |
Answer / micha&
C is generally used to create operating systems or to
program some electronic devices like cameras, whilst C++ is
generally used to create software like Office, Mozilla
Firefox etc.
In other worlds C is used more with hardware while C++ is
used more with software, mainly because of more abstraction
and features in C++.
Is This Answer Correct ? | 43 Yes | 10 No |
Answer / varun ait
declaration of variable in C, should be done at its very
beginning of the program.
but in C++, variables can be declared anywhere inside a
function.
Is This Answer Correct ? | 39 Yes | 7 No |
Answer / ramakrishna
Hi All,
C follows procedural oriented approach and in procedural
oriented programmers are more focussed on functions rather
than data, how they write the program is more concerned
rather than security. But in object oriented programmer's
have given more priority to data than blocks.
Also procedural oriented terms difficult to understand ,but
object oriented meets real world existing system every thing
is considered as objects. I cannot write a program like
factorial but i can write a class called person...
This is main difference between c and c++.
Is This Answer Correct ? | 30 Yes | 5 No |
Answer / r.raj kumar
c c++
1.declaration of the 1.declaration fo the
operater only on the variable any whare in
top of the program. the function.
2.c doesn't support 2.it support boolian
boolian data types. data types.
3.the application programs 3.the application progarm
are only based the are based on the user
system level requerments.
Is This Answer Correct ? | 25 Yes | 7 No |
Answer / yechuri .ramakrishna
C is a procedural or structure oriented language.
c++ is not purely object oriented but partially oriented
language.
Becoz it is voilating the security rule by providing
friend function also member function should not be out side
the class.
Is This Answer Correct ? | 29 Yes | 12 No |
Answer / ramesh kumar
c language programming is very compartiable with hardware.
it running speed is very high and after comiling once time
we have no need to recompile the program when we run on
other machine.This feature differciate the c language from
c++ language.
Is This Answer Correct ? | 20 Yes | 4 No |
What are functions in oop?
What are the features of oop?
what is the new version of oops
Why do we need polymorphism in c#?
what is inline function?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
how to swap the variables without using temp and operators
Write pseudo code for push in a stack?
What does and I oop mean in text?
What is design patterns in C++?
What do you mean by inline function?
What is the important feature of inheritance?