Similar Books


    No books found

Title
Chapter: 2 / Q: e.g2.4.2
defines bufSize as a constant. Any attempt to assign to bufSize is an error
Chapter: 2 / Q: e.g2.4.3
The initializer may be an arbitrarily complicated expression
Chapter: 2 / Q: e.g2.4.4
Among the operations that don’t change the value of an object is initialization— when we use an object to initialize another object, it doesn’t matter whether either or both of the objects are consts
Chapter: 2 / Q: e.g2.4.5
To define a single instance of a const variable, we use the keyword extern on both its definition and declaration(s)
Chapter: 2 / Q: e.g2.4.1.1
Unlike an ordinary reference, a reference to const cannot be used to change the object to which the reference is bound
Chapter: 2 / Q: e.g2.4.1.2
In particular, we can bind a reference to const to a nonconst object, a literal, or a more general expression
Chapter: 2 / Q: e.g2.4.1.3
The easiest way to understand this difference in initialization rules is to consider what happens when we bind a reference to an object of a different type
Chapter: 2 / Q: e.g2.4.1.4
It is important to realize that a reference to const restricts only what we can do through that reference. Binding a reference to const to an object says nothing about whether the underlying object itself is const. Because the underlying object might be nonconst, it might be changed by other means
Chapter: 2 / Q: e.g2.4.2.1
We may store the address of a const object only in a pointer to const
Chapter: 2 / Q: e.g2.4.2.2
This placement indicates that it is the pointer, not the pointed-to type, that is const
total questions: 591

Questions

591

Views

A PHP Error was encountered

Severity: Warning

Message: Undefined property: stdClass::$TotalViews

Filename: books/book.php

Line Number: 411

Best Answers

299

Points

5