different default initialization in global and local variables