Good luck. See you in Rank 03.
Here is the psychological trick:
Without the distraction of "optimal solutions" from Google, you are forced to rely on your own logic. If you get stuck, do not stare at the screen. Walk to the bathroom. Get water. Talk to the rubber ducky (the imaginary one, don't get kicked out). The answer is usually a misplaced free() or an off-by-one in your buffer size. Rank 02 is usually the first exam where memory leaks cause an automatic failure. You cannot just "make it work"; it must be clean. Exam 42 Rank 02
Here is the truth about Rank 02, and how to approach it not as a hurdle, but as a rite of passage. Rank 02 almost exclusively revolves around Get Next Line (GNL) and basic file descriptor manipulation. You might think this is just about reading from a file. It is not. GNL is the first time 42 forces you to manage state across multiple function calls using static variables.
Glory is nice. Passing is better. If you are preparing for Exam 42 Rank 02, you have already survived the Piscine. You have already learned that segfaults are temporary, but quitting is permanent. You have looked at a blank main.c at 2 AM and felt like an impostor. Good luck
If you are staring down the barrel of , you are no longer a tourist. Rank 00 was about learning to type gcc and making the Norminette happy. Rank 01 was about understanding pointers and memory allocation. Rank 02 is where the filter begins. This is the exam that separates those who watched the videos from those who broke their keyboards debugging.
In the ecosystem of 42, the exams are not just assessments; they are rituals. Unlike traditional tests where you memorize a fact and regurgitate it, a 42 exam drops you into a minimalist shell, disconnects you from the internet (and your dotfiles), and asks a simple, terrifying question: Can you actually build this? If you get stuck, do not stare at the screen
Rank 02 is designed to make you feel that impostor syndrome one last time before you realize you are actually a developer.