Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
Polymorphism
flowchart
Home
Questions
Questions
Study lists
Kasim Kamal Questions
290 Questions
We can convert a nonconst to const but not the other way round
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
196
The distinction between top-level and low-level matters when we copy an object. When we copy an object, top-level consts are ignored
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
183
Low-level const appears in the base type of compound types such as pointers or references. Note that pointer types, unlike most other types, can have both top-level and low-level const independently
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
190
Neither the value of the object addressed by pip nor the address stored in pip can be changed. On the other hand, curErr addresses a plain, nonconst int. We can use curErr to change the value of errNumb
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
162
This placement indicates that it is the pointer, not the pointed-to type, that is const
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
154
We may store the address of a const object only in a pointer to const
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
2
161
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
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
248
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
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
160
In particular, we can bind a reference to const to a nonconst object, a literal, or a more general expression
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
149
Unlike an ordinary reference, a reference to const cannot be used to change the object to which the reference is bound
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
200
To define a single instance of a const variable, we use the keyword extern on both its definition and declaration(s)
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
159
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
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
406
The initializer may be an arbitrarily complicated expression
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
168
Total:
290
Previous
11
12
13
14
15
Next
Go