answersLogoWhite

0


Best Answer

As for pointers, I think you have to readjust them. Pointers are just variables that store a memory address in them. You can have as many pointers that point to a single location in memory as you want.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

Pointers will not adjust themselves.

I am assuming you are talking about realloc. Realloc returns a pointer to the position in memory where the resized buffer is held. This pointer could be the same as your old pointer because the system was able to expand or contract the memory allocated without having to outright move it. In this case, you would be lucky if you did not fix your pointers. However, realloc is also able to completely move the data elsewhere in memory. If you didn't update your old pointers then you're out of luck. Realloc won't even update the pointer you passed to the function.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 10 When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why does the current rise when the voltage drops?

It is not generally true that current increases when the voltage decreases. Ohms law for a simple resistor says that current is proportional to voltage. However an electric motor supplying a constant mechanical load power will readjust to a lower supply voltage by drawing more current, although if the voltage is progressively reduced the motor would stall. Switch-mode power supplies also tend to draw a constant power from the supply when the input voltage changes.


How do you calculate cable size for given load?

Generally speaking, you would find conductor ampacity (the amount of current it can handle continuously) in Table 310.16 of the NEC (National Electrical Code). The numbers in the table are good as long as you don't go over the stated number of conductors at the top of the table and the 86 degree Celsius ambient temperature. If anything changes, use the adjustment factors for conduit fill and ambient temp.However, with all the possible other applicable sections of the NEC, it really depends on the type of load and howand where the cable is fixed because its operating temperature will depend on whether it is enclosed in a duct, is buried underground or is outside in the open air.For a typical load, not knowing anything else about it, I would multiply the load (in amps) by 1.25 and find a wire with at least that ampacity.As always, if you are in doubt about what to do, the best advice anyone should give you is to call a licensed electrician to advise what work is needed.Before you do any work yourself,on electrical circuits, equipment or appliances,always use a test meter to ensure the circuit is, in fact, de-energized.IF YOU ARE NOT ALREADY SURE YOU CAN DO THIS JOBSAFELY AND COMPETENTLYREFER THIS WORK TO QUALIFIED PROFESSIONALS.


Related questions

Do you have to readjust the alternator belt after put in a new alternator?

Yes.


How long does it take for your tastebuds to readjust after smoking?

Anywhere from few days to a week.


When would you readjust a zeroed scope for windage and elevation and range?

Change in ammo, change in weather


The Level of the toilet water is getting lower?

You got thirsty pets? Readjust the tank level.


You want to remove the muffler from your 76 Honda CJ360T and leave the pipes on will you have to readjust anything with the engine timing etc?

Without the exhaust back pressure, the engine could run a little richer. You may need to readjust the carbs to get the bike to run smoother.


When performing a negative pressure check on your protective mask what should you do if the lens does not remain deflected?

readjust the mask


Can you adjust the hinges on a 1997 Monte Carlo?

Yes, a bodyman car readjust your door by manulipulating the hinges.


Jeep Cherokee vent heater only blows on defogger?

heater vent will not readjust to any position


Do you have to adjust a rocker arm on 87 Chevy Celebrity 2.5l?

As far as I know you do not need to readjust the valve lash on the 2.5L 4 cylinder engine as a routine maintenance item. Of course if you do a valve job or replace lifters, push rods or such then you would have to readjust the valve lash.


Why after you come back from the moon for a little bit you have a hard time walking?

You have to readjust to the Earth since you are heavier here.


When performing a negativepressure check on your mask what should you do if the lens does not remain deflected after holding your breath?

readjust mask fit


IF a complete exhaust system is changed on a Raptor 80 Do you need to readjust the carburetor?

Just alittle should not be that bad.