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 give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What does c mean?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
How can I list all of the predefined identifiers?
What is identifier in c?
Why do we use null pointer?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
what is uses of .net
What is realloc in c?
How will you delete a node in DLL?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Can a variable be both static and volatile in c?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Why should I prototype a function?