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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction example?

624


What are the 5 oop principles?

605


What is balance factor?

589


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1151


What is variable example?

599






write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1783


What is encapsulation oop?

579


What is abstraction with example?

609


Why is abstraction used?

612


Can we define a class within the interface?

555


what type of question are asked in thoughtworks pair programming round ?

1766


Can a varargs method be overloaded?

619


What is multilevel inheritance in oop?

557


How do you answer polymorphism?

580


why reinterpret cast is considered dangerous?

1906