#include<iostream> using namespace std; int main() { string str= "Welcome to Softhunt.net Tutorial Website"; cout << str<<' '; cout <<" Position of the 'to' word is :"; cout<< str.find("to"); return 0; }