2 ms·str can be allocated on the stack, or heap, or static storage.by School-Cotton 2y agostr can be allocated on the stack, or heap, or static storage.