Skip to content

C — Piscine Exam 01

Exam 01 directly mirrors the C-series projects:

If you skipped these projects or copied them from peers, you will fail Exam 01. Redo them yourself, by memory. c piscine exam 01

Every exam file must start correctly. Don't rely on Norminette for the exam, but compile correctly. Exam 01 directly mirrors the C-series projects:

#include <unistd.h> // Required for write()
void    ft_putchar(char c) // Useful helper function
write(1, &c, 1);

Convert a string (in a given numeric base, e.g., binary, hex) into an integer. This requires handling +/- signs, whitespace, and invalid characters. It is the ultimate test of string traversal. If you skipped these projects or copied them

Why it's hard: You have to track sign, manage overflow (informally), and validate the base string (no duplicates, no +/-).