Thats what I given.
Don't use pointers to objects that don't life long enough, otherwise the pointer will point to NULL not an object, as a pointer has no influece on the lifetime of an object!
Don't use pointers to objects that don't life long enough, otherwise the pointer will point to NULL not an object, as a pointer has no influece on the lifetime of an object!