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 is the difference between the local variable and global variable in c?
What is the use of getch ()?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Explain is it better to bitshift a value than to multiply by 2?
Can a void pointer point to a function?
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)
What is the difference between functions abs() and fabs()?
How can I write functions that take a variable number of arguments?
what is the structure pointer?
Explain how can I convert a number to a string?
Describe static function with its usage?
When we use void main and int main?
What is the scope of static variables in c language?
Write a program to check whether a number is prime or not using c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?