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 is the difference between the local variable and global variable in c?

604


What is the use of getch ()?

727


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

916


Explain is it better to bitshift a value than to multiply by 2?

813


Can a void pointer point to a function?

660






In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1744


What is the difference between functions abs() and fabs()?

754


How can I write functions that take a variable number of arguments?

720


what is the structure pointer?

1728


Explain how can I convert a number to a string?

724


Describe static function with its usage?

717


When we use void main and int main?

673


What is the scope of static variables in c language?

732


Write a program to check whether a number is prime or not using c?

678


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2125