design a function char maxchar(char,char)- to return the smallest character from the arguments
Answers
Answered by
4
Explanation:
convert the characters into integer(ASCII code)
ASCII A-Z = 65 to 90
ASCII a- z=97 to 122
compare the ASCII codes , the character having the smaller ASCII code will be the smallest character and print that smallest character .
Attachments:
Similar questions