If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Rows is user input number of rows.
/* allocation */
int* pArray;
pArray = (int*)malloc(sizeof(int)*C
/* access to row i and column j */
int item;
item = pArray[COLUMNS*i+j];