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
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 Why do we need function? What are the types of pointer? What is split a string in c++? Write syntax to define friend functions in C++. Write a program to interchange 2 variables without using the third one. What is ifstream c++? How can you specify a class in C++? How long does it take to get good at leetcode? What is an incomplete type in c++? Explain the concept of friend function in c++? How do I use turbo c++? What are its advantages and disadvantages of multiple inheritances (virtual inheritance)? Can we make any program in c++ without using any header file and what is the shortest program in c++. What type of question are asked in GE code writing test based
on c++ data structures and pointers?