From: Dave Bird Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie Pointers Date: Sun, 21 Feb 1999 02:20:33 +0000 Organization: very little Message-ID: References: <36CF1710 DOT AED0C97 AT castle DOT on DOT ca> NNTP-Posting-Host: xemu.demon.co.uk X-NNTP-Posting-Host: xemu.demon.co.uk:158.152.196.209 X-Trace: news.demon.co.uk 919606503 nnrp-07:13676 NO-IDENT xemu.demon.co.uk:158.152.196.209 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain;charset=iso-8859-1 X-Newsreader: Turnpike (32) Version 4.01 Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <36CF1710 DOT AED0C97 AT castle DOT on DOT ca>, balboa writes >Hello: > >eg; > >Does prototype float *function_name(float *var); > >Is the function a pointer to the return type? The function returns a value whose type is pointer-to-float. The parameter is also pointer-to-float. Thus it could be.... static float x1=0; float *function_name(float *var){ x1=(*var)+17; //get float value from the parameter return &x1; //return address of a float variable }; -- Dave[XEMU] ________________(....=^¬¬^=______ ---<,,">