int *p = NULL;
printf("%1d",p) ;
what will be the output of this above code?
Answer Posted / sourisengupta
0
| Is This Answer Correct ? | 5 Yes | 0 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 How does class accomplish data hiding in c++? How to declaring variables in c++? What is a forward referencing and when should it be used? What is purpose of abstract class? What is nested class in c++? What is the role of copy constructor in copying of thrown objects? Define pointers? Why is c++ still popular? What are friend classes? What is polymorphism and its type in c++? What are keywords in c++? Is dev c++ a good compiler? Ask to write virtual base class code? Can recursive program be written in C++?