diff options
author | ven <vendethiel@hotmail.fr> | 2016-03-22 16:23:05 +0100 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-03-22 16:23:05 +0100 |
commit | 722a7766d8048d44773eea842e720d1508d6a430 (patch) | |
tree | 6f1543bdfe7b18de325e6e7b86e661eb27fcaee7 | |
parent | d6b665f91c699779906c28482dcf4fcd51e83867 (diff) | |
parent | 7b78232897c00ebb781f28a21b96f1863c073ac8 (diff) |
Merge pull request #2206 from ryebr3ad/master
[c/en] issue 2205: Change variable 'size' to 'array_size'
-rw-r--r-- | c.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c.html.markdown b/c.html.markdown index 7c9dd590..2fad5348 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -143,9 +143,9 @@ int main (int argc, char** argv) // can be declared as well. The size of such an array need not be a compile // time constant: printf("Enter the array size: "); // ask the user for an array size - int size; - fscanf(stdin, "%d", &size); - int var_length_array[size]; // declare the VLA + int array_size; + fscanf(stdin, "%d", &array_size); + int var_length_array[array_size]; // declare the VLA printf("sizeof array = %zu\n", sizeof var_length_array); // Example: |