The question is on the picture and the error as well.
This is the code that has an error.
#includeint reverse(int num),rev=0,rem;int reverse(int num){ if(num==0) return rev; else { rem=num%10; rev=rev*10+rem; reverse(num/10); }}Extracted text: Syntax Error(s) tester .c: In function 'main' : tester_.c:27:12: error: stray '\342' in program printf ("%d", reverse (12752));; tester .c:27:13: error: stray '\200' in program printf ("%d", reverse (12752));; tester_.c:27:14: error: stray '\234' in program printf ("%d", reverse (12752));; tester .c:27:15: error: expected expression before '8' token printf ("%d", reverse (12752));; tester .c:27:17: error: stray '\342' in program - printf ("%d", reverse (12752));; _tester_.c:27:18: error: stray '\200' in program printf ("%d", reverse (12752));; tester_.c:27:19: error: stray '\235' in program | printf ("%d", reverse (12752));; tester -.C: In function 'reverse' : tester .c:22:1: error: control reaches end of non-void function [-Werror=return- } ccl: all warnings being treated as errorsExtracted text: Write a function that will display the reverse of the number. Test Input Result printf("%d", reverse(12752)); 12752 25721
int reverse(int num),rev=0,rem;
int reverse(int num){ if(num==0) return rev; else { rem=num%10; rev=rev*10+rem; reverse(num/10); }}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here