Recreate the same Printf function in C, with the same behaviors.
There are several types of format specifiers that can be used in the printf() function, including:
- %d or %i: Used to print integers
- %f: Used to print floating point numbers
- %c: Used to print characters
- %s: Used to print strings
- %x or %X: Used to print hexadecimal numbers
- %p: Used to print pointers
- %%: Used to print the % character