#include using namespace std;int main(){char s[1000], dest[1000];int i, ip, len, count = 0;cout<"input a="">"input>cin>>s;cout<"enter the="" ip="" of="">"enter>cin>>ip;cout<"enter the="" len="" of="">"enter>cin>>len;while (count < len)="">dest[count] = s[ip+count-1];count++;i++;}cout<"required substring="">"required><>return 0;}Note:Change the above code into funcation
cout<"required substring="">"required><>return 0;}
Note:Change the above code into funcation
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here