Lifetime of pointers value

It depends on how serial works if it copies the data or keeps control until the print is complete then you are ok. If not then there is no way up work out what will happen.

As Markt said returning a pointer somthing on the stack is a very very bad idea.

Mark