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

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -