Hello All,
I may not have been that into C++ at first but I like having a try-catch again and a lot of other features are neat.
But by far and above, I am in love with vectors.
So what does a vector look like in C?
Is it an array where you allocate memory right behind it?
Like,
Will this even compile? I haven't tested it yet but is that basically how'd you emulate push_back()?Code:int *x = malloc(1*sizeof(*x));
x+1 = malloc(1*sizeof(*x));