init: HW1

This commit is contained in:
ytshih authored and ytshih committed 2026-10-05 06:06:40 +08:00
commit f9ee622fb8
17 files changed
+1197

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
--- test2.c
+++ test2.c
@@ -14,9 +14,8 @@
for (int j = 0; j < N; j++)
{
/* max() */
- c[j] = a[j];
- if (b[j] > a[j])
- c[j] = b[j];
+ if (b[j] > a[j]) c[j] = b[j];
+ else c[j] = a[j];
}
}