Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!mit-eddie!fenchurch.mit.edu!jbs From: jbs@fenchurch.MIT.EDU (Jeff Siegal) Newsgroups: comp.lang.c Subject: Re: problems using sizeof() Message-ID: <9913@eddie.MIT.EDU> Date: 20 Aug 88 08:50:46 GMT References: <751@arctic.nprdc.arpa> <8000001@modcomp> Sender: uucp@eddie.MIT.EDU Reply-To: jbs@fenchurch.MIT.EDU (Jeff Siegal) Organization: MIT EE/CS Computer Facilities, Cambridge, MA Lines: 14 In article <8000001@modcomp> joe@modcomp.UUCP writes: >Jeff Siegal (jbs @ fenchurch.mit.edu.UUCP) writes: >>You can't tell the size of an object from a >>pointer to it. > >Not true for Fortran 77. The semantics of the language require that the size >of a character string argument also be passed to a procedure. Did you READ my article? I made this exact point in the next paragraph. More than just the pointer is being passed. The length is being passed separately, although the language hides this. C doesn't (have hidden arguments). Jeff Siegal