Can we access RAM?
How? Whats the range of access?
Similarly What are other hardware we can access?
Answer Posted / shrirang phadke
Yes, we can access RAM using "far" pointer as follows...
int main()
{
char far *s;
s = 0x413;
/*-- desired code goes here --*/
return 0;
}
Now pointer(*s) is pointing to the base of Memory...
But, i guess far pointers works only in 16-bit enviornment.
Similarly, using far pointer we can access keyboard(0x417)
as well as Moniter(0xB8000000).
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are different types of operators?
Explain what is wrong with this program statement? Void = 10;
What are pointers in C? Give an example where to illustrate their significance.
what is different between auto and local static? why should we use local static?
Write a C program in Fibonacci series.
What is && in c programming?
What does sizeof function do?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is derived datatype in c?
What do the functions atoi(), itoa() and gcvt() do?
What is operator precedence?
what is the function of pragma directive in c?
How can I invoke another program or command and trap its output?
what is stack , heap ,code segment,and data segment
How many levels deep can include files be nested?