Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Saturday, September 24, 2011

C++ references

The & operator is no different to other operators when used on a reference: in all cases, the reference is dereferenced first. So

int i;
int &r = i;
int *p;

p = &r;

gives you a pointer to i in p. &r dereferences r, to get i, before taking its address.

Followers

Blog Archive