[EMAIL PROTECTED] wrote on 09/16/2004 10:41:01 AM:

> On Wed, Sep 15, 2004 at 05:33:20PM -0400, Srinivasan Krishnan wrote:
> 
> > > Though apparently C99 makes the differences between pointers and
> > > arrays more explicit.
> > 
> > K & R zindabad!
> 
> Errr ... why's that?
> 
> Sameer.

pointers and arrays are different in the sense that an array cannot be 
asigned a new value. Look at the following piece of code for explanation:

int a[20];
int* b;
int c=10;
main()
{
        b = &c;         /*it's valid*/
        a = &c;         /*it's invalid, as a is constant and cannot be 
asigned a new value*/
}

I hope that helps.

Cheers,
-Manu
---------
Manu Garg
http://manugarg.freezope.org
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services Limited. It must not be printed, 
read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any 
person other than the
addressee. Unauthorized use, disclosure or copying is strictly prohibited and may 
constitute unlawful act and can possibly attract legal action, civil and/or criminal. 
The contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services limited
on any subject matter. 
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services Limited takes 
any responsibility or liability towards the same. Opinions, conclusions and any other
information contained in this message that do not relate to the official business of 
Tata Consultancy Services limited shall be understood as neither given nor endorsed by 
Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services 
Limited. If you have received this message in error,
you should destroy this message and may please notify the sender by e-mail. Thank you.

-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to