Inclusive is a term that is often used when expressing bounds. It means that the range of this bound includes all values including the inclusive value. An example of this would be:
Print all integers 1-5 inclusive.
The expected output would be:
1 2 3 4 5
The antonym of this term would be exclusive which would include all values excluding the exclusive value. An example of this would be:
Print all integers 1-5 exclusive.
The expected output would be:
1 2 3 4
It is important to note, that in programming generally the first value is inclusive unless otherwise noted. In mathematics this can differ. Inclusive and exclusive ranges are often denoted with [] and ().
What does this square bracket and parenthesis bracket notation mean [first1,last1)?