kodakbrittany4828 kodakbrittany4828
  • 04-10-2019
  • Computers and Technology
contestada

Assume you have an integer pointer variable named intpoint2. It contains the address 1e6f24. You execute intpoint2++. What does intpoint2 now contain?

a)1e6f24

b)1e6f25

c)1e6f28

d)1e6f2c

Respuesta :

ExieFansler ExieFansler
  • 05-10-2019

Answer:

c)1e6f28

Explanation:

The integer pointer intpoint2 points to the address 1e6f24.On increasing the inpoint.The intpoint will point to next location and since we know that the memory taken by integers is 4bytes.So the pointer will move to the next location 4 bytes ahead.

1e6f24+4=1e6f28.

Hence the answer is option c.

Answer Link

Otras preguntas

what is the 14 the amendment
What are two movies which titles relate to 4th of July?
Who was the first woman to run for vice president on a major party ticket? a. Sarah Palin b. Geraldine Ferraro c. Patsy Mink
This haunting and eloquent military tune originated as a signal to mark the end of the day, and is used today at funerals, wreath-laying services, and memorial
What's a Protective tariff?
United States inventor (born in Scotland) of the telephone (1847-1922)
A plasma membrane and a cell wall 1. Are two names for the same thing 2. Have the same structure and different functions 3. Have different structures and the s
This song, written and recorded by Woody Guthrie, puts to music a walk along our country’s highways, valleys, deserts, and wheat fields. Name the tune. a. “Am
what is the 14 the amendment
How long is the term of Supreme Court justices? a. 20 years b. life c. until he or she reaches age 75