Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
C++ Primer
by
Stanley B.Lippman, Josee Lajoie, Barbara E.Moo
Edition:
5th Edition
ISBN13:
978-0-321-71411-4
ISBN10:
0 -321-71411-3
591
C++ programming
Home
Books
C++ Primer
Similar Books
No books found
Title
Chapter: 2 /
Q: e.g2.2.3
Once a name has been declared in a scope, that name can be used by scopes nested inside that scope. Names declared in the outer scope can also be redefined in an inner scope
Chapter: 2 /
Q: 2.13
What is the value of j in the following program
Chapter: 2 /
Q: 2.14
Is the following program legal? If so, what values are printed?
Chapter: 2 /
Q: e.g2.3.1
A reference defines an alternative name for an object. A reference type “refers to” another type. We define a reference type by writing a declarator of the form &d, where d is the name being declared
Chapter: 2 /
Q: e.g2.3.1
We can define multiple references in a single definition. Each identifier that is a reference must be preceded by the & symbol
Chapter: 2 /
Q: 2.15
Which of the following definitions, if any, are invalid? Why?
Chapter: 2 /
Q: 2.16
Which, if any, of the following assignments are invalid? If they are valid, explain what they do
Chapter: 2 /
Q: 2.17
What does the following code print?
Chapter: 2 /
Q: 2.18
Write code to change the value of a pointer. Write code to change the value to which the pointer points
Chapter: 2 /
Q: 2.19
Explain the key differences between pointers and references
total questions:
591
Previous
5
6
7
8
9
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason