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
Science,
9 days ago
Science,
9 days ago
Accountancy,
9 days ago
Physics,
19 days ago
Social Sciences,
8 months ago
Science,
8 months ago