Y
Hacker News
new
|
ask
|
show
|
jobs
by
amelius
1921 days ago
Pointer arithmetic uses it a lot. For example:
struct X { float a; int b[10]; }; X x;
If you want to access x.b[3], then you have to add sizeof float to the address of x, and then add sizeof int times 3.