The Gauntlet of Pointers: Surviving C Piscine Exam 01

In the grueling four-week marathon known as the C Piscine, 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.

The Aftermath

Most students will fail Exam 01 on their first try. Some will pass with 40% (12 points). The elite will get 100% (40 points) and be praised as "gods" in the intra-slack.

int a = 5;
int b = 3;

Exam 01 draws heavily from the early modules, specifically Shell 00/01 and C 00/01. Common tasks include: How to Succeed the Piscine at 42 School

  1. Count the number of "words" first.
  2. Allocate the outer array: malloc(sizeof(char *) * (word_count + 1)).
  3. Allocate each inner string exactly to the length of the word.
  4. Null-terminate the entire array.

Basic Strings: Reimplementing simple standard library functions like ft_strlen or ft_putstr.

No external resources (phones, notes, internet) are allowed. You only have your logic and the terminal. The Grading Machine: