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

what is a stack

3 Answers  


if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.

18 Answers   Parexel, Ram Infotech, Zycus Infotech,


write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)

10 Answers  


What is the most efficient way to count the number of bits which are set in a value?

4 Answers  


What are the different pointer models in c?

4 Answers  






What are the different types of control structures in programming?

0 Answers  


What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack

6 Answers  


What is the time and space complexities of merge sort and when is it preferred over quick sort?

0 Answers   Amazon,


How will you declare an array of three function pointers where each function receives two ints and returns a float?

0 Answers   TISL,


What is the role of && operator in a program code?

0 Answers  


What will be your course of action for a push operation?

0 Answers  


What is #include cctype?

0 Answers  


Categories