Instructions:
• Assignment must be completed and turned in by the due date given in canvas.
• Upload your DOCUMENTED C program with a .c extension to Canvas. You do not need to provide the compiled binary.
• You CANNOT use the built-in C library functions to complete the assignment (atoi or itoa), or any of the math.h functions. This program can be completed without them.
1) Write a function in C that converts an integer (type int) to its string equivalent
(type char[ ]).
2) Write a function in C that converts a string representation of an integer to a true
integer
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |