Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!laser.engin.umich.edu!feng From: feng@caen.engin.umich.edu (Liqiang Feng) Newsgroups: comp.lang.c Subject: dynamically define 2-D array Keywords: c, dynamic, array, pointers Message-ID: <1990Oct31.015714.21409@engin.umich.edu> Date: 31 Oct 90 01:57:14 GMT Sender: news@engin.umich.edu (CAEN Netnews) Organization: University of Michigan Engineering, Ann Arbor Lines: 7 I am trying to dynamically allocate a 2-D array, and I think I need to declear a pointer which is the pointer to an array of pointers, and the pointers in that array of pointers will serve as the pointers to the 2-D array. Is this right? Can anybody give me a very simple example how it is done? Thank you very much. E-mail: feng@caen.engin.umich.edu