The formula that uses relative cell references is F18+F19/2.
A relative cell reference will adjust as a formula is copied because it is actually working by calculating what the formula is in relation to the cell where the formula is. For example, if you copied this formula down one row it would adjust to F19+F20/2. This is opposite of an absolute cell reference like you see in the first example. The cell will always reference cell A10, regardless of where it is copied to.
Answer:
vec[0].push_back(10)
Explanation:
Given
Declaration: vector <int> vec
Required
Assign 10 to the first element
This can be done using the push_back keyword.
The syntax is: <em>vectorname[position].push_back(value); </em>
In this case:
vectorname = vec
position = 0 i.e. first element
value = 10
So, we have:
vec[0].push_back(10)
False nothing appears. <span />