From mboxrd@z Thu Jan 1 00:00:00 1970 From: _z33 Subject: Re: typecasting - explain Date: Fri, 09 Sep 2005 14:18:09 +0530 Message-ID: References: <1126251195.4506.81.camel@kaushal> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1126251195.4506.81.camel@kaushal> Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-c-programming@vger.kernel.org kaushal wrote: > hi _z33, > Someone correct me if Iam wrong.the idea behind typecasting is > to tell the compiler how u want to access a particular region in > memory.Whether the region has to considered in terms of 4bytes at a time > or interms of 1 byte at a time or 2bytes so on.ie.. when you use a > variable to access a memory region the datatype of the variable would > tell the size of the memory region which has meaningful data for us. > When u typecast a variable it means u r trying to increase or decrease > the memory region size. I'm sorry my wording of the explanation of the typecasting is, I agree, flawed. But, do tell me more on typecasting function pointers. Does it mean anything different or still the same as typecasting of normal data types? _z33 -- I love TUX; well... that's an understatement :)