What is the difference between begin() and cbegin() in vectors?
(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
I have been asked this question by my college professor while I was bunking the class.
My query is from seq_con Vector Class in division Class Hierarchies, Library & Containers of C++