RinRi 2 anni fa
parent
commit
c114cc41ec
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. BIN
      week02/ex2
  2. +2
    -0
      week02/ex2.c

BIN
week02/ex2 Vedi File


+ 2
- 0
week02/ex2.c Vedi 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);
}

Caricamento…
Annulla
Salva