“alloc” only creates a new memory location but doesn’t initializes it but “new” works both allocation and initialization.
“alloc” only creates a new memory location but doesn’t initializes it but “new” works both allocation and initialization.