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 |
Why functions are used in c?
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS
where do we use volatile keyword?
write c program to display output 10(10+20)+(10+20+30)+ ... n term
0 Answers Hindustan Gum Chemicals,
Write a program to compute the following 1!+2!+...n!
What is macro?
What is dynamic variable in c?
Differentiate between the expression “++a” and “a++”?
What is mean by data types in c?
Why #include is used in c language?
What is strcpy() function?