I do not know you but i consider Wikipedia one of the more ugly things on internet and in general in the humanity history. I detest anything is Wiki and like Wiki, i consider a similar approach about the various argument mistaken, useless and dangerous.
Some time ago i have read (i do not remember the item) a thing like the following:
int funtion(int var) {
int arr[var]; ......
}All this should be in the place of malloc function:
int function(int var) {
int *arr;
arr = malloc(var * sizeof(int));
if(arr != NULL) { ....... } else { puts("OUT OF MEMORY"); exit(); }
arr = NULL; free(arr);
}I am not a very C expert, i have studied some things, read some item, but i have never seen a thing like this and that my compilers, obviously, refuse.