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 are pointers? What are stacks and queues?
What is a void pointer? When is a void pointer used?
Explain a file operation in C with an example.
What is c programming structure?
Differentiate between a for loop and a while loop? What are it uses?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Why can arithmetic operations not be performed on void pointers?
Differentiate between Macro and ordinary definition.
What is c system32 taskhostw exe?
What are pointers in C? Give an example where to illustrate their significance.
What is the difference between far and near ?
Do you know what are bitwise shift operators in c programming?
How #define works?
What is the function of multilevel pointer in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.