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

Where can I get an ansi-compatible lint?

0 Answers  


Place the #include statement must be written in the program?

0 Answers  


How do you determine the length of a string value that was stored in a variable?

0 Answers  


What is an anonymous union and where to apply that ?

3 Answers   HP,


What is the difference between functions getch() and getche()?

0 Answers  






While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.

2 Answers  


What is the meaning of typedef struct in c?

0 Answers  


Explain why C language is procedural?

0 Answers   GE,


What is the use of getch ()?

0 Answers  


Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0

6 Answers   Qualcomm,


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

0 Answers  


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

0 Answers   Subex,


Categories