//-std=c99 -Wall -Wextra -Wpedantic -Wshadow #include #include #include static inline int largestOfThree(int a, int b, int c) { if(a>b) { if(a>c) return a; else return c; } else if(b>c) return b; else return c; } int main() { char str1[]="ACCGTGTCA"; char str2[]="GCCGTGTCGACC"; int match = 1; int mismatch = -1; int gap = -2; unsigned int lenStr1 = strlen(str1); unsigned int lenStr2 = strlen(str2); int tbl[lenStr2+1][lenStr1+1]; unsigned int i,z; int scoreLeft, scoreUp, scoreDiagonal; //initialize the table tbl[0][0] = 0; for(i=1;i>>>>>>>>> print table >>>>>>>>>> printf("\t\t"); for(i=0;i