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
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
Math,
2 months ago
Physics,
2 months ago
Computer Science,
2 months ago
Physics,
4 months ago
Science,
1 year ago