int compare(char* version1, char* version2 ) { // write code here int index1=0,index2=0,n1=strlen(version1),n2=strlen(version2); // int len=n1>n2?n1:n2 while(index1<n1||index2<n2){ int num1=0,num2=0; while(version1[index1]!='.'&&index1<n1){ ...