C Piscine Exam 01 Upd | 2026 Edition |

The C Piscine Exam 01 is often the first major hurdle for aspiring developers at 42 Network schools. Coming after the initial week of intensive learning, this exam tests your ability to handle basic C syntax, logic, and the specific constraints of the school's normative standards. Success requires more than just knowing how to code; it requires mental stamina and attention to detail. Understanding the Environment

The exam takes place in a controlled, offline environment. You will not have access to the internet, your previous exercises, or external notes. You must rely entirely on your memory and the man pages available on the terminal. The "Exam Shell" interface manages your progress, serving one exercise at a time. You cannot skip an exercise; you must submit a working solution to move to the next level. Core Technical Focus

Exam 01 typically covers the fundamental building blocks of C programming. Expect to see variations of the following concepts:

Writing to the standard output is a constant requirement. You should be intimately familiar with the write function. Practice using it to display single characters, strings, and integers by converting them to their ASCII representations.

You will encounter problems requiring you to navigate and manipulate arrays. This includes finding the length of a string, copying strings, and reversing them. Understanding the null terminator is vital to avoiding segmentation faults during the grading process.

Expect problems that ask you to compare numbers, find the maximum or minimum in a set, or determine if a number is prime. These tests evaluate your ability to translate logical requirements into efficient code using if-else statements and loops. The Importance of Norminette c piscine exam 01

At 42, code quality is as important as functionality. Your code must adhere to the Norm, a set of specific formatting rules. Common pitfalls include using forbidden functions, exceeding the line limit for a function, or incorrect indentation. Even a perfect logic will result in a failure if the Norm is not respected. Use the norminette tool frequently during the exam before submitting any exercise. Strategies for Success

Time management is your greatest asset. Do not spend two hours stuck on a single low-level problem. If your code is not working, delete it and start fresh with a different logical approach. This often clears mental blocks.

Before you start typing, write out your logic in pseudocode on the scrap paper provided. Visualizing the flow of a loop or the conditions of an if-statement prevents simple syntax errors from snowballing into logic failures.

Always test your code with edge cases. What happens if the input is a null pointer? What if the number is zero or negative? The automated grading system, Moulinette, is designed to find these gaps in your logic. If your code handles the basic cases but fails the edge cases, you will not receive points. Mental Preparation

The Piscine is designed to be stressful. It is normal to feel overwhelmed during the first exam. Take deep breaths and stay focused on the terminal. If you fail Exam 01, do not be discouraged. Many successful students fail their first few exams; the key is to analyze what went wrong and ensure you are better prepared for the next one. The C Piscine Exam 01 is often the

Mastering the C Piscine Exam 01 is a matter of practice and discipline. By internalizing the basics of the C language and strictly adhering to the school's standards, you will build the foundation necessary to navigate the remainder of the Piscine and the curriculum beyond.

The C Piscine Exam 01 primarily tests your foundational understanding of the C programming language, specifically the concepts introduced in modules C 00 and C 01. While the very first exam (often called Exam 00) might include Shell questions, Exam 01 is firmly focused on C logic. Key Exam Topics

Expect exercises that mirror the structure of your daily projects, starting very simply and increasing in difficulty:

Basic C Logic (C 00): Writing functions to print strings or numbers using write, working with while loops, and simple if-else conditions.

Pointer Manipulation (C 01): Understanding how to modify a variable's value through its address (e.g., ft_ft), handling double pointers, and basic arithmetic with pointers. Exercise: ft_split This is the "boss fight" of Exam 01

String & Array Handling: Implementing simple versions of standard functions, such as finding string length (ft_strlen), printing a string (ft_putstr), or reversing an array of integers (ft_rev_int_tab).

Arithmetic Operations: Using division and modulo operators and storing multiple results via pointers (e.g., ft_div_mod). Essential Exam Mechanics

ayoub0x1/C-Piscine-exam: Get ready for your 1337 ... - GitHub

Here’s a complete feature breakdown for "C Piscine Exam 01" — typically the first graded exam in the 42 Network’s C Piscine.


Exercise: ft_split

This is the "boss fight" of Exam 01. Given a string s and a separator character c, return an array of strings (each word from s split by c), terminated by NULL.

The trap: Students often allocate the wrong amount of memory. You must:

  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.

5. Trying to use banned functions

You cannot use <stdio.h> (no printf for debugging in the final submission – though you can use it during development if you comment it out!). You cannot use <string.h>. You must rewrite strlen, strcpy, etc., by hand.

Duration & Format

Bonus (Rare): ft_split

char **ft_split(char *str, char *charset);