difference between c and c++?

Answer Posted / asri

c is procedure oriented language and gives importance to
procedure that is functions rather than data.c is middle
level language.
c++ is object oriented language and gives importance to
object that is data
c++ is high level language

Is This Answer Correct ?    393 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of volatile variable?

599


Write a program to add three numbers in C++ utilizing classes.

619


Can we use this pointer in a class specific, operator-overloading function for new operator?

611


Why Pointers are not used in C++?

622


What is the array and initializing arrays in c++?

506






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<<"["<

1810


By using c++ with an example describe linked list?

602


Is c++ built on c?

559


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2069


What are the advantages of using pointers in a program?

679


What is static class data?

573


Is c++ primer good for beginners?

585


What is the need of a destructor? Explain with the help of an example.

566


What is meant by entry controlled loop?

658


Which software is best for programming?

659