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


Please Help Members By Posting Answers For Below Questions

What does obj stand for?

731


What does scope resolution operator do?

702


How do I make turbo c++ full screen?

672


Is there a sort function in c++?

633


Define stacks. Provide an example where they are useful.

679






What is a vector c++?

670


How does atoi function work?

745


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 //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

1906


What happens if a pointer is deleted twice?

905


What would happen on forgetting [], while deallocating an array through new?

718


Which one between if-else and switch is more efficient?

687


How would you find out if a linked-list is a cycle or not?

642


Is c++ built on c?

662


How many standards of c++ are there?

725


What is the type of 'this' pointer? When does it get created?

628