[svlug] abt arrays in C

Matt Billenstein matt at vazor.com
Wed Apr 2 19:08:03 PST 2003


Uh, this may be a little rusty, but you can try more or less:

void main()
{
  int *b;
  b = procedure();
  free(a);
}

int *procedure(){
  int *a = malloc(10*sizeof(int));
  return a;
}

This isn't a homework question is it?

thx

m

Matt Billenstein
matt at vazor.com
http://www.vazor.com/




More information about the svlug mailing list