How can I extract common elements of two number arrays into another
array?
// the following doesn't work
for(k=0;k<10;k+ +)
for(l=0;l<15;l+ +)
if(p[k]==q[l]) {r[m]=p[k];++m;}
array?
// the following doesn't work
for(k=0;k<10;k+ +)
for(l=0;l<15;l+ +)
if(p[k]==q[l]) {r[m]=p[k];++m;}
Comment