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 <[email protected]> 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* char*p rather than *typedef > char* char*p. bcoz you want new name for the whoole thinge (const char*), > not just char*. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
