Lets say i have a string like “Insert X”. X is supposed to be involved in a function. How would I get access to it? Can you reply to this as soon as possible.
How would i access the elements after Today?
Hey @JaveedYara
You can use the substr function to solve the above question.
string str = “Insert X”;
X starts from the 7th index.
Thus X = str.substr(7)
Using this , you can extract X.
If my answer is able to answer your query, please mark the doubt as resolved.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.