C++ Deque back()C++ Deque back() function is used to access the last element of the deque container. SyntaxParameterIt does not contain any parameter. Return valueIt returns a reference to the last element of the deque container. Example 1Let's see a simple example Output: 5 In this example, back() function returns the last element of the deque i.e 5. Example 2Let's see a another simple example Output: Content of deque:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Next TopicC++ Deque |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India