Skip to main content

C Piscine Exam | 01

Are there any (like ft_strcmp or ft_split ) that are tripping you up?

You start at Assignment 0. If you pass it, you move to Assignment 1. If you fail an assignment because of a typo, memory leak, or incorrect output, you must retry that level with a completely different problem. 2. Core Concepts Tested in Exam 01

Using unauthorized standard library functions (like printf or string.h ) will automatically fail your assignment. Stick strictly to write . c piscine exam 01

Compile using flags to catch warnings early: gcc -Wall -Wextra -Werror ft_swap.c main.c

Simple arithmetic functions that require precise logic and handling of edge cases. Are there any (like ft_strcmp or ft_split )

What happens if a pointer passed to your function is NULL ? What happens if an integer array has a size of 0 or 1? What if an integer is negative? Defend your code against unexpected inputs.

Always test your code with extreme inputs: 0 , negative numbers, empty strings ( "" ), and maximum integer values ( INT_MAX ). Step-by-Step Exam Strategy If you fail an assignment because of a

A program that replaces all instances of a specific character with another character in a given string.

ft_split

Pointer arithmetic, string manipulation, iterative vs. recursive logic, and basic array sorting. Core Concepts Tested 1. Pointer Manipulation and Memory Layout

Using the dereference operator ( * ) to modify a variable's value from another function.