C: Creating a given number of variables automatically -
is possible create c-function creates automatically given number of variables? how variables named?
the solution use array. example:
//n number of variables int *var; var= malloc(sizeof(int) * n); variables named var[0], var[1]....var[n-1]
Comments
Post a Comment