charp is not a textual replacement of char* since it is typedef.
const charp p and
charp const p
are both equivalent to p being a constant pointer to character.

On Sun, Oct 10, 2010 at 10:19 AM, Soumya Prasad Ukil
<ukil.sou...@gmail.com>wrote:

> @kewat,
>               If it is const char*, then  compilation won't give error. But
> it is something like char *const. But how?
>
> On 10 October 2010 08:31, umesh kewat <umesh1...@gmail.com> wrote:
>
>> Dear prasad
>> after pre-compiling  the expression is like
>>
>> const char* p = &a, so now u can understand y its const pointer....
>>
>> On Sun, Oct 10, 2010 at 1:07 AM, Soumya Prasad Ukil <
>> ukil.sou...@gmail.com> wrote:
>>
>>>
>>> #include<stdio.h>
>>> main()
>>> {
>>>      char a ='c';
>>>      typedef char* charp;
>>>      const charp p=&a;
>>>      p++;
>>> }
>>>
>>> Why p is a constant pointer ?
>>>
>>> --
>>> regards,
>>> soumya prasad ukil
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to algoge...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Umesh kewat
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algoge...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> regards,
> soumya prasad ukil
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Rgds,
Kusuma S

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@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.

Reply via email to