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 do you mean by a local block?

1 Answers   InterGraph,


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

1 Answers  


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

1 Answers   Huawei,


Are pointers really faster than arrays?

1 Answers  


Explain the difference between call by value and call by reference in c language?

1 Answers  


plz answer....A program that takes 3 variables e.g a,b,c in as seperate parameters and rotates the values stored so that value goes a to b, b to c and c to a .

3 Answers  


What is pass by reference in c?

1 Answers  


How do you search data in a data file using random access method?

1 Answers  


What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none

9 Answers   IBM,


what is the stackpointer

2 Answers  


write a c program to check weather a particluar bit is set or not?

5 Answers   IBM,


what is the output of the following program? #include<stdio.h> void main() { float x=1.1; while(x==1.1) { printf("\n%f",x); x=x-0.1; } }

6 Answers  


Categories