Good luck. You will survive Exam 01. And when you do, Exam 02 will be waiting... but that is a story for another article.
Spacing errors, declaring variables outside the top of the function, or exceeding line limits will cause the grademe system to reject your code.
While the exact questions change, Exam 01 heavily mirrors the concepts taught in of the Piscine curriculum. Expect variations of the following problems: Level 0: The Absolute Basics
Example:
: Once logged in, type examshell in the terminal and log in with your personal credentials to begin.
int ft_strlen(char *str) int i; i = 0; while (str[i] != '\0') i++; return (i); Use code with caution. The Pointer Swap ( ft_swap )
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 c piscine exam 01
Using a temporary variable to hold one value while swapping ( int temp = *a; *a = *b; *b = temp; ). ft_div_mod
You will be using the Exam Shell , a command-line automated grading system.
if (x > 10) printf("%d is greater than 10\n", x); else printf("%d is less than or equal to 10\n", x); Good luck
Always use character literals (like 'a' ) in your code instead of raw numbers (like 97 ). It makes your code cleaner, less error-prone, and compliant with the 42 coding style ethos. 4. Run Norminette Before Every Submission
Exam 01 scales up the difficulty from Exam 00 by introducing algorithmic thinking. You are no longer just printing characters; you are manipulating data. 3 to 4 hours.
The most iconic function of Exam 01 is . but that is a story for another article
: Expect problems involving argc and argv . A common strategy is to finish the C06 project before this exam, as it directly covers these concepts.
I thoroughly understand how pointers point to memory addresses.