Chapter 8: Problem 25
When you pass an array name as an argument to a function, what is actually being passed?
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 8: Problem 25
When you pass an array name as an argument to a function, what is actually being passed?
All the tools & learning materials you need for study success - in one app.
Get started for free
Given the following array definition: \\[\text { int values }[5]=\\{4,7,6,8,2\\}\\] What does the following statement display? \\[\begin{aligned} \text { cout } &<<\text { values }[4]<<\text { " } \quad "<<(\text { values }[2]+\text { values }[3]) \\ &<<\quad \text { " } \quad<<++\text { values }[1]<<\text { endl } \end{aligned}\\]
Each element of an array is accessed and indexed by a number known as a(n) _________.
Look at the following array definition. int numbers \([5]=\\{1,2,3\\}\) A) What value is stored in numbers [ \(2]\) ? B) What value is stored in numbers [ \(4]\) ?
To pass an array to a function, pass the _________ of the array.
To define a two-dimensional array, _________ size declarators are required.
What do you think about this solution?
We value your feedback to improve our textbook solutions.