For below singleton class where would be the memory taken from (Stack or Global memroy)
class Singleton
{
    public:
        static Singleton* get()
        {
            static Singleton instance;
            return &instance;
        }
};
For below singleton class where would be the memory taken from (Stack or Global memroy)
class Singleton
{
    public:
        static Singleton* get()
        {
            static Singleton instance;
            return &instance;
        }
};
 
    
    instance will be located in static storage (or global as you call it).
