In the grueling four-week marathon known as the , there is no single event that strikes more existential dread into the heart of a beginner than Exam 01 . If the very first exam (Exam 00) is a gentle handshake — testing basic printf , write , and simple loops — then Exam 01 is the sudden, violent shove off a cliff.
You will likely be asked to re-code standard functions. Practice these until they are muscle memory: ft_strcpy / ft_strncpy ft_strcmp / ft_strncmp ft_strcat / ft_strncat ft_strstr c piscine exam 01
The Moulinette gives you 0 points if your code has a syntax error. Before you submit, always run gcc -Wall -Wextra -Werror yourfile.c . No warnings allowed. In the grueling four-week marathon known as the
| Feature | Description | |---------|-------------| | | Must pass (no forbidden functions, proper indentation) | | Memory leaks | Detected by Moulinette (strict malloc / free balance) | | Segfault protection | Null checks, bound checks required | | Static vs dynamic | Must allocate exactly as required (e.g., ft_strdup uses malloc ) | | Prototype matching | Exact function signature | | Hidden tests | Many edge cases tested (empty string, negative numbers, min/max int) | Practice these until they are muscle memory: ft_strcpy
The C Piscine is as much psychology as programming. Exam 01 induces “white screen syndrome”—staring at a blinking cursor for 20 minutes.
Computers store int 1 differently from char '1' .