Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The C divided by C++ programming language

Name: Anonumoys 2012-02-21 23:43

The name may be abbreviated as ``C/C++'' for convenience.

In C, types cannot inherit from other types. In C/C++, they must explicitly inherit from one of the built-in "root" types. Failing to specify a parent type is a syntax error.

Explicitness is enforced elsewhere, as well. For example, you must explicitly write the goto instruction at the end of a foreach loop (there are no other loop constructs) and the break instruction in branches of a switch statement. The ternary operator is likewise introduced with the if keyword to improve readability.

The language provides you with undefined, void, null, NULL, empty, and nothing. Using the wrong one in the wrong place is a runtime error. A twelve page auxiliary equivalence table is provided in appendix XIV in addition to the usual entries in the tertiary equivalence table.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-02-21 23:48

>>1
>Failing to specify a parent type is a syntax error.

Bullshit.

>The ternary operator is likewise introduced with the if keyword to improve readability.

Maybe. But it's primary (ab)use is to mimic lazy evaluation.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List