can anyone explain wy these 2 will be different ,atleast wen they are
passed as actual or formal parameters.
As in case of actual parameters, both will be passed as "n"--> some address
value.
In  case of formal parameters,char n[]  takes the form of char*n. So where
is the difference highlighted in both the cases.
Ashima
M.Sc.(Tech)Information Systems
4th year
BITS Pilani
Rajasthan




On Mon, Aug 22, 2011 at 9:34 PM, sukran dhawan <sukrandha...@gmail.com>wrote:

> take the size of char * p and char p [] to confirm the same
>
>
> On Mon, Aug 22, 2011 at 9:32 PM, Anand Prasad <anandprasa...@gmail.com>wrote:
>
>> yea,, true.. spot on actually..
>> Anand
>>
>>
>>
>> On Mon, Aug 22, 2011 at 9:30 PM, sukran dhawan <sukrandha...@gmail.com>wrote:
>>
>>> they are different !!! char p[] is a constant pointer and char * p is
>>> not.
>>> u can do something like this
>>>
>>> char * p;
>>> p="dgdfg";
>>>
>>> but not the same for char p[]
>>>
>>> On Mon, Aug 22, 2011 at 8:55 PM, priya ramesh <
>>> love.for.programm...@gmail.com> wrote:
>>>
>>>> The compiler will distinguish between char n[] and char * in which part
>>>> of the prog??
>>>> 1. In actual parameters of function arguments
>>>> 2. In formal parameters of function arguments
>>>> 3. in both
>>>>
>>>> generally after 1st online technical round what is the cut off for
>>>> amazon??
>>>>
>>>> --
>>>> 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.
>>>
>>
>>  --
>> 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.
>

-- 
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.

Reply via email to