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...


The question is on the picture and the error as well.



This is the code that has an error.


#include


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);
    }
}


Syntax Error(s)<br>tester .c: In function 'main' :<br>tester_.c:27:12: error: stray '\342' in program<br>printf (

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 errors
Write a function that will display the reverse of the number.<br>Test<br>Input<br>Result<br>printf(

Extracted text: Write a function that will display the reverse of the number. Test Input Result printf("%d", reverse(12752)); 12752 25721

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here