21
edits
Changes
→Adding challenge
=== To Do ===
==== Challenge ====
Write the printf function but call it MyPrint.
It should support
* %c (character)
* %s (string)
* %d (integer)
* %X or %x (integer printed in Hex)
* %f (double or float no formating, always printed with 2 digit after decimal point)
MyPrint("int %d, char %c, string %s, hex %x, float %f", 2, 'A', "hello", 16, 12.34567);
int 2, char A, string hello, hex 10, 12.34
=== Resources ===