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

What is searching?

659


What are c++ variables?

542


Write about the retrieval of n number of objects during the process of delete[]p?

576


What are references in c++?

665


How did c++ start?

616






Is c++ the most powerful language?

571


what are the events occur in intr activated on interrupt vector table

1183


Can we sort map in c++?

598


What are the effects after calling the delete this operator ?

563


What is the use of cmath in c++?

593


How do you clear a map in c++?

573


Can comments be longer than one line?

626


What is namespace & why it is used in c++?

610


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

591


Differentiate between the manipulator and setf( ) function?

596