answersLogoWhite

0


Best Answer

The size of a pointer is not dependent on the size of the target integer, float, and so on. Typically, a pointer is 2 bytes (16 bit system), 4 bytes (32 bit system), or 8 bytes (64 bit system).

Note: that's what sizeof is good for

As examples: (for a 32 bit Windows platform)

int a; /* sizeof(a) is 4 */

int* pa; /* sizeof(pa) is 4, and sizeof(*pa) is also 4 */

double d; /* sizeof(d) is 8 */

double* pd; /* sizeof(pd) is still 4, and sizeof(*pd) is 8 */

typedef struct s { /* using alignment option /zp1 */

int a;

double b;

char c[16];

} ss;

ss myss; /* sizeof(myss) is 28 */

ss* pmyss; /* sizeof(pmyss) is still 4, and sizeof(*pmyss) is 28 */

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How much space is occupied by an integer pointer float pointer..... n soo on?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When the pointer is positioned in the document window it takes the space of the you-beam pointer Is this true or false?

False. The pointer (or cursor) takes the space of the I-beam pointer.


Why do space shuttle float on space?

A space shuttle is able to float because there is no gravity in space.


Does everything float in space?

No, not everything floats in space. Objects with mass are still affected by gravitational forces, so they can be in motion or orbit around celestial bodies. In the absence of gravity, objects or particles with mass still have inertia and will continue to move unless acted upon by another force.


How do you measure the space occupied by solid objects?

Volume of an object is a measure of the space occupied by objects.


What is the volume of liquid?

The volume of a liquid is the amount of space occupied by the liquid.The volume of a liquid is the amount of space occupied by the liquid.The volume of a liquid is the amount of space occupied by the liquid.The volume of a liquid is the amount of space occupied by the liquid.


What is the space occupied by a substance's space?

It is the Volume.


What was the first permanently occupied space station?

The first permanently occupied space station was the Soviet space station Salyut 1, which was launched on April 19, 1971. It remained in orbit for 175 days and was crewed by multiple cosmonauts during its mission.


What can astronauts do on the space station?

The astronauts can float in the


How does the moon float in space?

The moon orbits around the Earth due to gravitational force. Its motion is a balance between the pull of Earth's gravity and the moon's own inertia. This allows the moon to "float" in space without falling towards Earth.


What occupied the space of the cork at the bottom of the glass?

what occupied the space of the cork at the botton of the glass


Why can things float in space?

there is no gravity in space


Why can't a hot air balloon float in outer space?

A hot air balloon requires air to generate lift. In outer space, there is no air or atmosphere, so there is nothing for the hot air balloon to displace to generate lift, causing it to be unable to float.