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
Which ide is best for c++?
What do you mean by static variables?
What is the main purpose of overloading operators?
How is computer programming useful in real life?
Is c++ high level programming language?
What is data abstraction? How is it different from data encapsulation?
What are the defining traits of an object-oriented language?
What is difference between rand () and srand ()?
What is the difference between #import and #include in c++?
What is the difference between the functions rand(), random(), srand() and randomize()?
Explain the use of virtual destructor?
What does n mean in c++?
What is lvalue?
What is the difference between an enumeration and a set of pre-processor # defines?
What do you mean by vtable and vptr in c++?