256 Kilobytes

Answers in Computer Programming | By Japanese

Published 8 months agoTue, 19 Mar 2019 22:06:10 -0700

65 views, 0 RAMs, and 1 comment

Tags: Arrays, CPP, Vectors

Profile Photo - Japanese Japanese 256KB Writer Selma, VA
🗎 48 🗨 92 🐏 1

I am told that i need to use an array for my owrk code. What is the difference between a vector and an array when writing in C++?

Download more RAM. 🐏 ⨉ 0 Posted by Japanese 8 months ago 🕓 Posted at 19 March, 2019 22:06 PM PDT

I am not Japanese, but I play one on TV.

Profile Photo - thegstocersson thegstocersson 256KB Writer Amador City, CA
🗎 21 🗨 34 🐏 1

I had absolutely no idea how to answer this question until I did some extensive reading. The main difference between C++ Vector and Array vector is simply the sequential containers. Array is lower level data structure and is a memory efficient data area. The Vecture believe it or not take up a lot more memory because of that it can manage storage and grow a lot.

Download more RAM. 🐏 ⨉ 0 Posted by thegstocersson 8 months ago 🕓 Posted at 20 March, 2019 06:36 AM PDT

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.