Explain Substring Function In Cpp