There is such a function:
int AvsB(char *string1,char *string2){ int i,length=stringLength(string1); for(i=0;i<length;i++){ if(convertInInt(string1[i])>convertInInt(string2[i])){//A>B return printf("%s > %s",string1,string2); } if(convertInInt(string1[i])<convertInInt(string2[i])){//A<B return printf("%s < %s",string1,string2); } if(convertInInt(string1[i])==convertInInt(string2[i])&&i==length-1){//A==B return printf("%s = %s",string1,string2); } } } It compares two numbers that are entered as strings. It is necessary to transfer it using recursion.
As I understand it - the solution will be to find the length of the string before the function is called in the program and pass this value as a function parameter.
And the counter for receiving the next element of the line - i must also be passed as a parameter?
Or is there a better approach?