The answr is 3. Arrays can have negative elements. The address is the
address of base - address of int.
On Wed, Dec 15, 2010 at 10:56 PM, siva viknesh sivavikne...@gmail.comwrote:
main()
{
int a[5]={1,3,6,7,0};
int *b;
b=a[2];
coutb[-1];
}
the value of b[-1] is
a.1
b.3
c.-6
Is it that the first case its a pointer to a pointer. So size of pointer to
a pointer is 4.
In next case , Its the size of array. So its 40. Is the explanation correct?
On Wed, Dec 15, 2010 at 9:43 AM, rahul rahulr...@gmail.com wrote:
you would like to read peter ven der linden.(deep C