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

What is union and structure in c?

0 Answers  


What is a scope resolution operator in c?

0 Answers  


List some of the dynamic data structures in C?

0 Answers  


what does keyword ‘extern’ mean in a function declaration?

1 Answers   Emerson,


Why malloc is faster than calloc?

0 Answers  






Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

0 Answers  


without using arithmatic operator convert an intger variable x into x+1

3 Answers  


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

0 Answers  


What is function prototype?

0 Answers  


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

0 Answers   TISL,


What is the purpose of Scanf Print, getchar, putchar, function?

3 Answers  


Categories