May 30, 2024
int a reserves 4 bytes in memory.a)10)0x1000 for base address)data_type *pointer_name;int *p; or int* p; is correct.int *p -> address of an integerfloat *f -> address of a floatdouble *d -> address of a doubleint *p; and p = &a;int *p = &a;*p does not change size, but content type (addressed to integer is different from address to float).*int *p = &b; if b is float.float *p = &b;* symbol.float x, y;
int a;
int *p;
p = &x;
p = &a;
End of Lecture Notes