C,C++
#include <stdio.h>
int main()
{
int x;
scanf("%d", &x);
int a[x];
}
안됨.
------------------------------------
GOD JAVA
import java.util.*;
class Main {
public static void main(String args[])
{
int x;
Scanner s = new Scanner(System.in);
x = s.nextInt();
int[] a = new int[x];
}
}
잘됨.
-------------------------------------
Pray for java
이 사람이 하는 말이 진짠가요?
끌끌...직접 해보면 될것을...
안 됨
https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
그냥 malloc써
패배를 인정합니다.
근데 저거 간단한걸로만 치면 자바가 획기적이지 않음?
ㅄ
저게 된다면 왜 될까? 안된다면 왜 안될까?
힙영역에 만드느냐 안만드느냐의 차이인가요??
어짜피 곧 망할 언어