Start a new topic

Substring in C++

Substring in C++ is achieved using str::substr() which is a predefined function comes with string.h header file. This function basically takes two arguments pos and len. In this function the index starts from 0.


Read More

Login or Signup to post a comment