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 different types of constants?

729


What does 2n 4c mean?

859


How to declare pointer variables?

783


How do you declare a variable that will hold string values?

779


Why functions are used in c?

710






pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1959


What is c programming structure?

708


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1684


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

787


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2140


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1706


Explain argument and its types.

701


What is identifier in c?

653


What is the advantage of an array over individual variables?

845


what is uses of .net

1362