.
간 .
게 -_-...
.
간 .
게 -_-...
.
#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.









