its true . both are right.
char *a or char a[]--- in a function call .... foo(a);  //actual parameters

same way in formal also
foo(char *)  or foo(char[])...



On Thu, Aug 25, 2011 at 1:19 PM, Jagannath Prasad Das
<jpdasi...@gmail.com>wrote:

> what do u folks think please reply
>
>
> On Mon, Aug 22, 2011 at 11:43 PM, Jagannath Prasad Das <
> jpdasi...@gmail.com> wrote:
>
>> In formal arguments compiler comes to  know about the type of its
>> arguments.
>> In the actual parameter compiler also knows what is the type of parameter
>> passed.
>> Actually the type conversion takes place when the function is called at
>> the runtime during assignment of actual to formal argument.
>> So when the function is called ,first of all the the expression
>> representing actual parameter is evaluated and a copy of it made/copy
>> constructor is called incase of object passing.
>>
>>
>> So i feel "both" is the answer
>>
>> cheers
>> jagannath
>>
>>
>> On Mon, Aug 22, 2011 at 10:28 PM, sukran dhawan 
>> <sukrandha...@gmail.com>wrote:
>>
>>> if u dont want messages pl unsubscribe from the group :)
>>>
>>>
>>> On Mon, Aug 22, 2011 at 10:26 PM, raj Kumar <
>>> rajkumar.mardub...@gmail.com> wrote:
>>>
>>>> please dont send me messages
>>>>
>>>>  --
>>>> 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