Scalar Variable

A scalar variable has a single value (at any one time); this is contrasted with a vector or an array, which contains a number of values, each of which is referred to by its index.


The scope of a variable is the part of the program in which the variable can be accessed. The scopes with which we are concerned are local, global, and class; see local scope, global scope, and class scope for more details.

See also [Local Scope]
See also [Global Scope]
See also [Class Scope]
Selection Expression

A selection expression is the part of a switch statement that specifies an expression used to select an alternative section of code.

Selection Sort

A selection sort is a sorting algorithm that selects the highest (or lowest) ...

Get Learning to Program in C++ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.