Outputting characters using the write syscall.
int add(int a, int b) return a + b;
But fear not. This guide will dissect in its entirety—from the exact topics you need to master, to the grading system, and a step-by-step strategy to walk out of that exam room with a 100% score. c piscine exam 01
A program that takes a string and displays its first word, followed by a newline. Whitespaces and tabs must be handled cleanly. Level 3: Advanced String Manipulation & Arguments
Take a pointer to a pointer to a pointer... (nine levels deep: int *********ptr ) and set the final integer value to 42 . Outputting characters using the write syscall
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
While the exam dynamically pulls from a pool of questions, the standard progression typically looks like this: Level 0: The Baseline A program that takes a string and displays
Ultimately, Exam 01 is less about the complexity of the code and more about . It separates those who are merely copying syntax from those who are beginning to think like a computer. Passing it provides a massive boost in confidence, signaling that the "swimmer" has survived the first deep-water test and is ready for the more complex algorithms and data structures that lie ahead. Are you currently preparing for this exam, or
Before submitting, delete your main() function (or completely comment it out) if the subject only asked for a function. Leaving an extra main() will cause a compilation collision and fail your exam.
| Attribute | Details | |-----------|---------| | | 4 hours | | Attempts | Usually 1 (retake possible later in some campuses) | | Grading | Automatic (Moulinette) + human review for certain functions | | Environment | Terminal, exam command, no internet access | | Allowed tools | vim , emacs , nano , cc , make , gdb | | Prohibited | Internet, -lm (math lib), forbidden functions unless stated |
You will have no access to Google, stack overflow, or your phone. You will use a terminal-based exam system (usually a custom framework called ExamShell ).