From 18b053378d689256cfd755ce6a09430302b15c37 Mon Sep 17 00:00:00 2001 From: Tammy Lee Date: Sat, 5 Jan 2019 09:16:47 -0800 Subject: [PATCH] Added about statically vs dynamically allocated (#31555) --- guide/english/c/arrays/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/c/arrays/index.md b/guide/english/c/arrays/index.md index b7c41bd0ccb..2214283c8f5 100644 --- a/guide/english/c/arrays/index.md +++ b/guide/english/c/arrays/index.md @@ -108,6 +108,8 @@ int*A=(int*)malloc(sizeof(int)*n); * Some texts refer to one-dimensional arrays as vectors, two-dimensional arrays as matrices, and use the general term arrays when the number of dimensions is unspecified or unimportant. +* Two types of arrays in C are statically allocated and dynamically allocated. The size and number of dimensions of statically allocated arrays are known at compile time. On the other hand, dynamically allocated are allocated on the heap at run time and require a call to ```malloc```. + ## Multi-dimensional Arrays in C