The program is suppose to look thought str and see if part can be found inside. problem is that it doesnt do that. can someone help me fix it?
Code:#include <stdio.h> #include <math.h> #include <string.h> int main () { char str[][17] = { "ATTCGCTTATTCCGAC" , "AAGCGCTAACCGCTAG" , "CAGCGCAAACGCCGTT" , "GCGCTCAAAGGCTTAA" }; char part[17]="GCGCA"; int n; for (n=0 ; n<4 ; ++n) { if (strcmp (str[n],part, 5) == 0) { printf ("found %s\n",str[n]); } } }