C++
default
default: labels are permitted in statement.Any statement (typically a compound statement).
Syntax:case 1: command1;
command2;
break;
default: command1;
command2;
break;
Example:switch(1) {
case 1 : int x = 0; // initialization
std::cout << x << '\n';
break;
default: // compilation error: jump to default: would enter // the scope of 'x' without initializing it
std::cout << "default\n";
break;
}
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 124 / 158777647. Delta: 0.00143 с