C Program To Find Size of Pointer Variables

preview_player
Показать описание


Lets write a C program to find out the size or the number of bytes occupied by pointer variables of different data type in your computers memory.

A pointer variable of type float holds only the address of floating point variable. A char pointer variable holds only the address of char type variable. But still the address of all these type of pointer variable is number. Addresses are always numbers and it can’t be a character, a string or real/floating/double numbers.

Also note that addresses are unique. There can’t be 2 location in your computers memory with same address.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

This is a problem
I want to know size of an int* the same as an array
int a [3];
int* p = a;

ArielLorusso