difference between c and c++?

Answer Posted / manish jangid

C++ is the hight level language, but C is low level
language.

C++ can support of all function of C, but C can't support
of all function of C++.

We can work with Class in C++, But we can't work with Class
in C

C++ is a object oriented language but C is not OOPS

C is the Top to bottom , but C++ is bottom to Top language.

Is This Answer Correct ?    110 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1808


Why do we need function?

595


What are the types of pointer?

542


What is split a string in c++?

686


Write syntax to define friend functions in C++.

598






Write a program to interchange 2 variables without using the third one.

578


What is ifstream c++?

552


How can you specify a class in C++?

791


How long does it take to get good at leetcode?

652


What is an incomplete type in c++?

761


Explain the concept of friend function in c++?

597


How do I use turbo c++?

545


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

600


Can we make any program in c++ without using any header file and what is the shortest program in c++.

609


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3501