Computer Science, asked by paulsanjana56, 19 days ago



34. Write a function that takes two char arguments and returns 0 if both the arguments are equal. The
function returns - 1 if the first argument is smaller than the second and 1 if the second argument is
smaller than the first.

Answers

Answered by RAM2120
4

Answer:

int fun(char a,char b)

{

if(a==b)

return 0;

else

return 1;

}

Explanation:

Since you haven't mentioned which coding language, I have written in java. Hope it helps you.✍️

Similar questions