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
If we want the deduced type to have a top-level const, we must say so explicitly
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
173
Second, auto ordinarily ignores top-level consts (§ 2.4.3, p. 63). As usual in initializations, low-level consts, such as when an initializer is a pointer to const, are kept
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
425
First, as we’ve seen, when we use a reference, we are really using the object to which the reference refers. In particular, when we use a reference as an initializer, the initializer is the corresponding object. The compiler uses that object’s type for auto’s type deduction
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
253
As with any other type specifier, we can define multiple variables using auto. Because a declaration can involve only a single base type, the initializers for all the variables in the declaration must have types that are consistent with each other
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
150
By implication, a variable that uses auto as its type specifier must have an initializer
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
166
Declarations that use type aliases that represent compound types and const can yield surprising results. For example, the following declarations use the type pstring, which is an alias for the the type char*
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
183
A type alias is a type name and can appear wherever a type name can appear
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
147
The new standard introduced a second way to define a type alias, via an alias declaration
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
196
We can define a type alias in one of two ways. Traditionally, we use a typedef
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
170
Like any other constant pointer, a constexpr pointer may point to a const or a nonconst type
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
159
It is important to understand that when we define a pointer in a constexpr declaration, the constexpr specifier applies to the pointer, not the type to which the pointer points
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
149
Under the new standard, we can ask the compiler to verify that a variable is a constant expression by declaring the variable in a constexpr declaration. Variables declared as constexpr are implicitly const and must be initialized by constant expressions
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
271
Whether a given object (or expression) is a constant expression depends on the types and the initializers. For example
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
177
Total:
290
Previous
10
11
12
13
14
Next
Go