Hi i started the book c++ from ground up,but looks like it's too old.I came across the bonded array.Question- what are they,where to use them,how and are they still used in c++11? Thank you .
aluhnev
0
Junior Poster in Training
Recommended Answers
Jump to PostAs far as I know, the term "bounded array" is not really standard terminology for anything in particular. I would assume, however, that it refers to a static array, something like this:
int arr[5];
. It is still used today, for sure. When you just want a small set of objects …
Jump to PostIn that example, the
vals
array would be called a static array or fixed-size array. But, the tests that are done in the get and put functions would be called "bound-checking" or bounded array access (I.e., the array access is "bounded"). So this might explain how you got the term …
All 6 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
aluhnev
0
Junior Poster in Training
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
aluhnev
0
Junior Poster in Training
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Hiroshe
commented:
you beat me too it
+8
Hiroshe
499
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.