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

Answer Posted / vijayasekar

1.C does not have any classes or objects. It is procedure
and function driven. There is no concept of access through
objects and structures are the only place where there is a
access through a compacted variable. c++ is object oriented
2.C structures have a different behaviour compared to c++
structures. Structures in c do not accept functions as
their parts.
3.C input/output is based on library and the processes are
carried out by including functions. C++ i/o is made through
console commands cin and cout.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract class in oop?

536


What is difference between inheritance and polymorphism?

573


What is ambiguity in inheritance?

625


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1410


What language is oop?

597






What exactly is polymorphism?

612


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1795


What is meant by oops concept?

614


Why do while loop is used?

579


Why do we use polymorphism?

579


Why is oop better than procedural?

606


What are the 4 pillars of oop?

674


how to get the oracle certification? send me the answer

1670


What is the main feature of oop?

622


What is balance factor?

589