Re: [algogeeks] C puzzle

2010-10-13 Thread nidhi gupta
No const char * p is a pointer to a constant string, and is not itselves a constant pointer! On Sun, Oct 10, 2010 at 11:41 AM, Harshal wrote: > @Soumya > Typedef merely adds a new name for some existing type, here for char* type > in your code. > So instead you should write *typedef const char*

Re: [algogeeks] Re: plz explain output

2010-10-12 Thread nidhi gupta
So its like the printf function cannot convert a int to float and hence prints the last float value which was given to printf. Correct if i have understood it wrong. On Mon, Oct 11, 2010 at 10:25 PM, Asquare wrote: > This modified code also works in exactly the same way.. > The explanation I ha