a) both are same
b) begin() returns iterator to first element and cbegin() returns iterator to last element
c) begin() returns an iterator to first element whereas cbegin() returns constant iterator to first element
d) begin() returns returns first element cbegin() returns void
What is the difference between begin() and cbegin() in vectors?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the difference between begin() and cbegin() in vectors?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!