Update Struct's pointer will check the pointer is valid or not
Implement newArray function