std::string::front() in C++with Examples
It is used to access the first character from the string. It returns a reference to the first character of the string. Unlike member string::begin, which returns an iterator to this same character, this function returns a direct reference. Syntax: string str ("GeeksforGeeks"); Accessing first charac