What are the advantages of C++ programming compared to C
programming?
Answer Posted / krishnachaitanya
c++ provides security to the data,c doesn't provide any
security to the data this is main advantage of c++ over than
c and c++ supports all concepts of c and it introduces
object oriented concepts like
objects,inheritance,polymorphism..etc.c++ programs are
useful for real-time purpose but c doesn't support.c++
introduces class concept.by using classes we can do
real-time projects.
c++ follows bottom-up approach but c follows top-down approach.
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What does obj stand for?
What does scope resolution operator do?
How do I make turbo c++ full screen?
Is there a sort function in c++?
Define stacks. Provide an example where they are useful.
What is a vector c++?
How does atoi function work?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What happens if a pointer is deleted twice? What would happen on forgetting [], while deallocating an array through new? Which one between if-else and switch is more efficient? How would you find out if a linked-list is a cycle or not? Is c++ built on c? How many standards of c++ are there? What is the type of 'this' pointer? When does it get created?