Can we access RAM?
How? Whats the range of access?
Similarly What are other hardware we can access?



Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access..

Answer / 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

More C Interview Questions

Write a c pgm for leap year

11 Answers   College School Exams Tests, IBM, TCS,


what is the mean of c languages.

1 Answers   Polaris,


What is equivalent to ++i+++j?

0 Answers  


How does free() know explain how much memory to release?

0 Answers  


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

0 Answers   Subex,






YBJBU6

1 Answers  


Explain b+ tree?

0 Answers  


How many bytes are occupied by near, far and huge pointers (dos)?

0 Answers  


What are the data types present in c?

0 Answers  


What is the difference between text files and binary files?

0 Answers  


Difference between linking and loading?

0 Answers  


what is computer

4 Answers  


Categories