What I've seen so far in examples are things like the below with no space between *
and x
.
int num = 10;
int *x = #
However, there's this struct definition in code I am working with where the pointer is not directly next to p
.
struct passwd * p = getpwuid(getuid());
Do the spaces on both sides make an important difference or is this just a syntactical alternative?
Is this specific to structs?
I learned the terms for pointers association to a variable with no luck on what the instance I've provided could mean.