Hey guys long time reader first time poster
Basically I wanted to know how to take an input from the command line and use that input to create a 2d array,
I am not really sure where to start but I can hard code the arrays and I dont have a problem with that but when it comes to argvc or what ever it is I just cant get my head around it and figure this out.
I am testing it out with a user input and it still doesnt work?
Just a example of what i am trying to do.Code:int DIM; printf("DIM please: "); scanf("%d", &DIM); int array[DIM][DIM];
Apparently using malloc is really the way to go but I dont know how to use malloc instead, I have come here for some help would really appreciate it.