fix: Update C code for compatibility with the MSVC compiler (#949)

* Replace VLA with malloc
Replace VLA with malloc to make C code
compatible with cl compiler on Windows.

* Fix C code for CI compiler.

* Fix C code compability to CI.

* check the trigger
This commit is contained in:
Yudong Jin
2023-11-17 00:29:54 +08:00
committed by GitHub
parent e4aa76ed3e
commit f7c41b6bef
23 changed files with 235 additions and 174 deletions

View File

@@ -76,7 +76,7 @@ int main() {
printf("数组 arr = ");
printArray(arr, size);
int nums[5] = {1, 3, 2, 5, 4};
int nums[] = {1, 3, 2, 5, 4};
printf("数组 nums = ");
printArray(nums, size);