C++ String front()
This function is used to reference a first character of the string.
Consider a string str. Syntax would be:
This function does not contain any parameter.
It is used to return a reference of the first character.
Let's see the simple example.
Let's see an another simple example.
Let's see a simple example to modify first character using front() function.
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week