Vector Container Design


What is wrong with this code?

Please answer my question??

hello @ashwani225
what issue u are facing?

It’s getting error while compiling

your code is not having any main function,header files etc.

include them and let me know it works or not.

I know that I have made vector.h file which will be included by my other program.

But it has some internal error that why I am asking

for now add this code in ur main file and share the code.

@ashwani225
image

declare it as int *arr;

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.