C Piscine Exam 01 May 2026
🏊 C Piscine Exam 01: Survival Guide Exam 01 is usually the second test in the 42 Piscine (Week 2) and is a significant step up from Exam 00. While Exam 00 focused on basic logic and character manipulation, Exam 01 starts testing your understanding of standard C concepts and command-line arguments. 🛠️ Core Topics to Master
Write-Up: C Piscine Exam 01
Overview
Exam 01 is the second closed-book, timed coding exam in the 42 Network’s C Piscine. It tests core memory manipulation, string handling, and algorithmic thinking—without access to standard libraries beyond write, malloc, and free. The difficulty ramps up from Exam 00, requiring deeper understanding of pointers, recursion, and bitwise operations. c piscine exam 01
8. ft_countdown
ft_strlen(without loops?) – Sometimes they banwhileto force recursion.ft_putstr– But you cannot usewritedirectly? No, you can, but you must write it character by character usingft_putchar.ft_rev_print– Print a string backwards. Traps the unwary who forget that you must find the\0first, then walk backwards.ft_atoi(the beginner's nightmare) – Convert a string to an integer. Handling-,+, and spaces, and stopping at non-digits. One off-by-one error, and you fail 50% of the test cases.