Lifetime and scope of variables, global and local variables