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

Answer Posted / dua gee

C++ was based on C and retains a great deal of the functionality. C++
does not retain complete source-level compatability with C.
There are a few gotchas for C++ programmers trying to write C code, and
C programmers trying to compile with a C++ compiler.
Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.

On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language. It is a concept or
approach for designing a new software. It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction encapsulation?

663


Can bst contain duplicates?

675


Templates mean

1592


Can private class be inherited?

622


Which is not an object oriented programming language?

544






What does it mean when someone says I oop?

587


What are classes oop?

601


What is constructor overloading in oop?

607


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6489


What are the features of oop?

641


Is data hiding and abstraction same?

572


What is meant by multiple inheritance?

742


What is oops?what is its use in software engineering?

560


class type to basic type conversion

1843


What are oops functions?

588