Answer:
See explaination
Step-by-step explanation:
#include<iostream>
using namespace std;
const char* firstOfAny(const char *str1,const char *str2){
const char *p=str1;
while((*p)!='\0'){
const char *q=str2;
while((*q)!='\0'){
if((*p)==(*q)){return p;}
q++;
}
p++;
}
return p;
}
int main(){
cout<<firstOfAny("ZZZZuker","aeiou");
cout<<endl;
cout<<firstOfAny("ZZZzyx","aeiou");
return 0;
}