From c114cc41ec2daabf3717e92d9001895162b75ef6 Mon Sep 17 00:00:00 2001 From: RinRi Date: Tue, 13 Sep 2022 21:59:22 +0300 Subject: [PATCH] fix ex2 --- week02/ex2 | Bin 20800 -> 20800 bytes week02/ex2.c | 2 ++ 2 files changed, 2 insertions(+) diff --git a/week02/ex2 b/week02/ex2 index 2f03a0430252812b61453ca911e068511913a0ec..1b5aa848a316735dc05730f355b4669f87413bd9 100755 GIT binary patch delta 350 zcmX@Gi1EN8#tj^doSjSzV9>c)kg=Re#AwHh==F`7o!sxuyLUcQ3N|e~D7twLvoBwL zH>;x_1A|BBvHeOw4KG6e{r~UL+xh`Sbsm4A3Z$D~Fm|@S0Ww}|dvuEm166l}xgIn4 zx3#c>RPygT;L&*vs9X%Bd@V>VWAk1R#ZY<1qnq`VfN*d z?QQ+=@Be>~&f_mEfpqf=#?IC^K*nork8V-*$x=cxT3R6SwID&p=Di?_q4LZQkl`NP zp+8bQv_(`kfSeN67aup52=(wzZeZ7#q|hVu0;I%|PoRy-nU{^}F%LV(=7~Z^ypu2J zS}=xe=G42+#27O9p@BVP%w|QyeH=i}1Ir{J$Jy#Wt5S#%NH+rm2ZJn-WChY7z%C{L zrWsh-Vi1-) diff --git a/week02/ex2.c b/week02/ex2.c index 7538e42..0338124 100644 --- a/week02/ex2.c +++ b/week02/ex2.c @@ -12,7 +12,9 @@ int main() { s[i] = '\0'; // i is already the size of s. I've used strlen to follow the 'hints' // section. + putc('\"', stdout); for (i = strlen(s) - 1; i >= 0; --i) { putc(s[i], stdout); } + putc('\"', stdout); } \ No newline at end of file