How can I access a memory located at certain address?

Answers were Sorted based on User's Feedback



How can I access a memory located at certain address?..

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

How can I access a memory located at certain address?..

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

Post New Answer

More C Interview Questions

How can I sort more data than will fit in memory?

0 Answers  


64/square(4)

1 Answers  


What is the role of this pointer?

0 Answers  


What is a list in c?

0 Answers  


How to implement call back functions ?

3 Answers   HP,






please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(

1 Answers  


Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 Answers  


What is the best style for code layout in c?

0 Answers  


ASCII stands for

1 Answers  


please explain every phase in the "SDLC" in the dotnet.

0 Answers  


What is 2 d array in c?

0 Answers  


difference between memcpy and strcpy

1 Answers  


Categories