adspace


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


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c with example?

1205


What is pointers in c with example?

1173


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1307


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2743


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1947


hi send me sample aptitude papers of cts?

2258


What is variable initialization and why is it important?

1404


Explain the difference between null pointer and void pointer.

1165


i have a written test for microland please give me test pattern

2816


How do you determine the length of a string value that was stored in a variable?

1209


what is ur strangth & weekness

2598


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2269


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2836


How can I implement sets or arrays of bits?

1129


What are compound statements?

1301