This website works better with JavaScript.
Home
Explore
Help
Sign In
rinri
/
operating-systems-course
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix ex2
master
RinRi
1 year ago
parent
c5663dc2ba
commit
c114cc41ec
2 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
week02/ex2
+2
-0
week02/ex2.c
BIN
week02/ex2
View File
+ 2
- 0
week02/ex2.c
View File
@@ -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);
}
Write
Preview
Loading…
Cancel
Save