pea
developer
Hey all,
Have temporary brain-fry problems
You know how
length++;
increases value of var 'length' by one?
What is the shorthand to increase the value pointed to by a pointer-to-an-int?
Basically the shorthand for this:
int *length;
*length = (*length)+1;
Because
*length++
Is very dangerous and incorrect (basically, return the value pointed to by length - which is ignored - and then increase the pointer by 1)
Have temporary brain-fry problems
You know how
length++;
increases value of var 'length' by one?
What is the shorthand to increase the value pointed to by a pointer-to-an-int?
Basically the shorthand for this:
int *length;
*length = (*length)+1;
Because
*length++
Is very dangerous and incorrect (basically, return the value pointed to by length - which is ignored - and then increase the pointer by 1)