#include using namespace std; int main() { char s[1000], dest[1000]; int i, ip, len, count = 0; cout>s; cout>ip; cout>len; while (count


#include
using namespace std;
int main()
{
char s[1000], dest[1000];
int i, ip, len, count = 0;


cout<"input a="">
cin>>s;


cout<"enter the="" ip="" of="">
cin>>ip;


cout<"enter the="" len="" of="">
cin>>len;


while (count < len)="">
dest[count] = s[ip+count-1];
count++;
i++;
}


cout<"required substring=""><>



return 0;
}


Note:Change the above code into funcation



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here