0
Is this ok to do this ?
struct stuff {string nom int age}; main typedef struct stuff stuff stuff *p = new stuff [n] I know this it's not a complete code but my question is can u make an object with a pointer? and then use dinĂĄmic memory?
1 Answer
+ 2
Yes, you can. It is allowed.
// If not, we couldn't use polymorphism as we do.