difference between c and c++?

Answer Posted / shivani

In c:Data is global and accessible to all the function of
the program without any restriction so,any function can
change the data which reduce the data security and
integrity.

In c++:Data and associated functions are binded together
into a single unit called object so the data of any object
can only be accessible by the function of that object
which protect data from unauthorized access ,thus
maintaning the data security and integrity.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain selection sorting?

715


Differentiate between the manipulator and setf( ) function?

704


What is the type of this pointer in c++?

728


What do you mean by late binding?

716


How long will it take to learn programming?

689






What is a local variable?

665


Is java the same as c++?

629


Is c++ high level programming language?

761


Define the operators that can be used with a pointer.

664


Using a smart pointer can we iterate through a container?

662


what is the use of void main() in C++ language?

761


What are the basic data types used in c++?

658


Explain the isa and hasa class relationships. How would you implement each?

724


Why c++ is created?

654


What is the use of lambda in c++?

661