Question
Write a Simple stopwatch code with C You need to write the body of the function makeString(). Pay attention that you cannot use stdio.h and
Write a Simple stopwatch code with C
You need to write the body of the function makeString(). Pay attention that you cannot use stdio.h and its convenient sprintf function. Instead, think how you can turn an integer (number) into its ASCII code in order to create the string.
// makeString gets min, sec and tenth and returns the string made up of them. // Important note: char *string should already have enough space to hold "00:00:0" format // example: makeString(2, 3, 9, myString) will update the content of myString to "02:03:9" void makeString(unsigned int min, unsigned int sec, int unsigned tenth, char *string) { }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started