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
How do you determine a file’s attributes?
the question is that what you have been doing all these periods (one year gap)
Differentiate between Macro and ordinary definition.
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is || operator and how does it function in a program?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Without Computer networks, Computers will be half the use. Comment.
Why is it that not all header files are declared in every C program?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What are the different types of data structures in c?
Explain what is the difference between #include and #include 'file' ?
Write a program to check palindrome number in c programming?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Once I have used freopen, how can I get the original stdout (or stdin) back?