Newsgroups: comp.lang.c Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!umich!sharkey!bnlux1.bnl.gov!reilly From: reilly@bnlux1.bnl.gov (kevin reilly) Subject: Pointers on pointers. Message-ID: <1991Apr5.173843.2435@bnlux1.bnl.gov> Organization: Brookhaven National Laboratory Distribution: na Date: Fri, 5 Apr 1991 17:38:43 GMT I declare a structure that contains other structures: struct strType { struct dataType1 data1; struct dataType2 data2; }; If dataType1 is known in advance as containing only ints can I do the following: declaration: void FUNC1(int *input); usage: FUNC1(&strType.data1); as opposed to the more correct procedure: declaration: void FUNC1(dataType *input); usage: FUNC1(&strType.data1); Is there something totally wrong with the first way? I have been using it quitre successfully but it bothers me to go against what I see in the standard texts. Thank you very much. Kevin M. Reilly reilly@bnlux1.bnl.gov