두가.
블록 라 가능.
배 동로 렇게 당다 -_-...
내 가능.
블록 라 가능.
배 동로 렇게 당다 -_-...
내 가능.
#include <stdio.h> int main() { int n; printf("Array Size? "); scanf("%d", &n); int x[n]; int i; for (i = 0; i < n; i++) { x[i] = i * 10; printf("%d ", x[i]); } printf("\n"); return 0; }
- ㅡ.ㅡ;; gcc는 되고, VS.net는 러를;; 못 가? VS.net는 되나? - eternalbleu
- ... C 동당 기 는 new나 malloc 드를 나?? .. 달리 는??;; -
- 본 결과 C99 되는 것로 맞며, 단 VS 러가 C99를 만 기 때문라고. gcc 3.0 부 된 기능로 variable-length array 라고 부르는군. (gcc는 C99발부 extension 로 기는 다고 다.) - eternalbleu
Open source development using C99
The new variable-length array (VLA) feature is partially available. Simple VLAs will work. However, this is a pure coincidence; in fact, GNU C has its own variable-length array support. As a result, while simple code using variable-length arrays will work, a lot of code will run into the differences between the older GNU C support for VLAs and the C99 definition. Declare arrays whose length is a local variable, but don't try to go much further.