How can I access a memory located at certain address?
Answers were Sorted based on User's Feedback
Answer / rakesh
No, it's not possible to assign the address to an pointer
variable. Assignment of address takes place at the time of
running, so it's not possible.
Even the processor does not support such memory leaks
from occuring..
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / banavathvishnu
suppose you have address :0x00cc01FF
main()
{
int *ptr = (int *)0x00cc01FF;
}
Using ptr you can access the memory location
| Is This Answer Correct ? | 1 Yes | 3 No |
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?
int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?
What is difference between far and near pointers?
Explain what is the advantage of a random access file?
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
Is it acceptable to declare/define a variable in a c header?
What is a scope resolution operator in c?
how logic is used
What is function prototype in c with example?
whitch value return void main?
What is indirection in c?
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?