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


Please Help Members By Posting Answers For Below Questions

What are different types of operators?

755


Explain what is wrong with this program statement? Void = 10;

957


What are pointers in C? Give an example where to illustrate their significance.

935


what is different between auto and local static? why should we use local static?

840


Write a C program in Fibonacci series.

807






What is && in c programming?

862


What does sizeof function do?

817


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1016


What is derived datatype in c?

801


What do the functions atoi(), itoa() and gcvt() do?

883


What is operator precedence?

834


what is the function of pragma directive in c?

846


How can I invoke another program or command and trap its output?

827


what is stack , heap ,code segment,and data segment

2394


How many levels deep can include files be nested?

832