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 scanf () in c?
In a byte, what is the maximum decimal number that you can accommodate?
Do pointers store the address of value or the actual value of a variable?
how can I convert a string to a number?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
what is the role you expect in software industry?
Explain void pointer?
What are enums in c?
What does stand for?
Write a program to print ASCII code for a given digit.
What does %p mean c?
What is const volatile variable in c?
What does 1f stand for?
What is the code for 3 questions and answer check in VisualBasic.Net?
simple program of graphics and their output display