how to write a data 10 in address location 0x2000

Answer Posted / vishnu

int main()
{
int *ptr;
ptr = (int *)0x2000;
*ptr = 10;
printf("%d", *ptr);
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2568


Explain what are compound statements?

597


How arrays can be passed to a user defined function

570


Can we access array using pointer in c language?

638


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1512






What does c in a circle mean?

572


What is #define size in c?

640


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1486


How are variables declared in c?

591


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5458


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1488


explain what are pointers?

612


explain what is fifo?

628


What should malloc() do?

637


What is a protocol in c?

552