typecast only temporarily changes the pointer type of LHS but cannot change that of RHS or even LHS permanently
On Tue, Aug 9, 2011 at 5:36 PM, ankit sambyal <ankitsamb...@gmail.com>wrote: > The typecasting tells the compiler that the void pointer is now pointing to > an integer and when we use this pointer to access the integer it takes value > from 4 bytes. But when we try to increment that pointer, it will point to > the next byte. Try taking k as pointer to double instead of void, u will c > the same result. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.