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
Can we use this pointer inside static member function?
What is the real purpose of class – to export data?
What is a type library?
Describe the syntax of single inheritance in C++?
Which programming language is best to learn first?
When are exception objects created?
What do you mean by ‘void’ return type?
What is the default access level?
Define basic type of variable used for a different condition in C++?
What is the this pointer?
which operator is used for performing an exponential operation a) > b) ^ c) none
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Is c++ an integer?
What is the difference between a definition and a declaration?
Write a program which uses Command Line Arguments