Exam 01 Piscine 42

"Think," he muttered. He needed to take a char , cast it to an unsigned char , divide it by 16 for the first digit, and modulo 16 for the second. He needed a base string: "0123456789abcdef" . Naughtyoffice 24 11 13 Angela White Remastered ... ●

He frowned. Wait. The newline character is decimal 10. 10 / 16 = 0 . 10 % 16 = 10 (which is 'a'). The output should be \0a . Sl Babe Fucking Mms Webxmazacommp Hot - Fullstack Camping

A red line appeared.

The instructions were simple: Print a string. If a character is non-printable (less than 32 or equal to 127), display it in hexadecimal, prefixed by a backslash.

Compile. Test. Pass.

He looked over at Sarah. She had just seen the green "Success" text on her screen. She slumped back, a wide, exhausted smile breaking across her face. They locked eyes for a second and gave a slight nod.