Question: Q 1 Char type and operations Write C programs mychar. h and mychar. c , containing the headers and implementations of the following functions. /
Q Char type and operations
Write programs mychar. and mychar. containing the headers and implementations of the following functions.
Determine the type of a char character.
@param c char type value
@return O if c is a digit, if is an arithmetic operator, if is an
int mytypechar c
Flip the case of an English character.
Cparam c char type value of ASCII code of English letter.
@return cs upperlower case letter if c is a lowerupper case English le
Convert digit character to the corresponding integer value.
Qparam c char type value of ASCII code of digit charactor.
@return its corresponding integer value if c is a digit character.
int chartointchar c
Test your programs using provided public test main program mychar ptest.c and terminal commands shown in the following public test. The screen output should be like as shown after the test run command.
Public test
compile command: mychar.c mycharptest. c o q test run command:
Test: mychar
Char ASCII MyType
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
