array much more when compared to malloc and realloc declaration (In malloc you've to mention the size as well in terms of bytes while there is no such constraint in vector)?
Read this first: https://thispointer.com/how-stdvector-works-internally/
Amazing I have a follow up, do I really need to know this internal knowledge of Cpp before beginning to do DS & Algo ?
You will grab these things slowly along with your ds/algo prep .. just keep going on.. there's just no end to these things ..
Oohh ... you mean I should juggle with both
Обсуждают сегодня