How can I access a memory located at certain address?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions to open and close the file in c language?

591


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

633


What is the use of getch ()?

631


Write a program to swap two numbers without using third variable in c?

616


what is stack , heap ,code segment,and data segment

2217






What is a built-in function in C?

791


Explain do array subscripts always start with zero?

758


Write a simple code fragment that will check if a number is positive or negative.

708


What is s or c?

594


How many levels of indirection in pointers can you have in a single declaration?

591


What's the total generic pointer type?

612


What are the advantages of c preprocessor?

713


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1409


Explain pointers in c programming?

632


Explain how can I make sure that my program is the only one accessing a file?

621