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
Where static variables are stored in c?
What is the usage of the pointer in c?
what is use of malloc and calloc?
Is it better to use a macro or a function?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Write the Program to reverse a string using pointers.
How will you divide two numbers in a MACRO?
how should functions be apportioned among source files?
Define recursion in c.
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Describe dynamic data structure in c programming language?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Why c is a procedural language?