ソースを参照

Fixed echo to actually print unsigned as well.

Lily Carpenter 12 年 前
コミット
96fc9397e0
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      myecho.c

+ 1 - 1
myecho.c

@@ -10,7 +10,7 @@ int main() {
10 10
 
11 11
     while ((total = fread(array, sizeof number, size, stdin))){
12 12
         for (int i = 0; i < total; i++){
13
-            printf("%i\n", array[i]);
13
+            printf("%u\n", array[i]);
14 14
         }
15 15
     }
16 16
 }