From 8ec5431354bdb582455e8c32758098c5a0fdada2 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 26 Jul 2019 23:17:36 +0200 Subject: exam final --- exam_final/subjects/2-0-aff_last_param/subject.en.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 exam_final/subjects/2-0-aff_last_param/subject.en.txt (limited to 'exam_final/subjects/2-0-aff_last_param/subject.en.txt') diff --git a/exam_final/subjects/2-0-aff_last_param/subject.en.txt b/exam_final/subjects/2-0-aff_last_param/subject.en.txt new file mode 100644 index 0000000..847abfe --- /dev/null +++ b/exam_final/subjects/2-0-aff_last_param/subject.en.txt @@ -0,0 +1,18 @@ +Assignment name : aff_last_param +Expected files : aff_last_param.c +Allowed functions: write +-------------------------------------------------------------------------------- + +Write a program that takes strings as arguments, and displays its last +argument followed by a newline. + +If the number of arguments is less than 1, the program displays a newline. + +Examples: + +$> ./aff_last_param "Zelda" "is" "a" "boy" | cat -e +boy$ +$> ./aff_last_param "I read this on internet !" | cat -e +I read this on internet !$ +$> ./aff_last_param | cat -e +$ -- cgit