Re: [algogeeks] Value of base pointer VS Address of base pointer

2011-08-13 Thread Dipankar Patro
[Quote] arr has the address to the base of an array of three int's. arr is the address of the first element of that same array. [/Quote] ^^ Found on web. check the difference by printing arr+1 and arr+1. The former will skip one element, but later will skip the whole array. On 12 August 2011

[algogeeks] Value of base pointer VS Address of base pointer

2011-08-12 Thread monish001
Program: int arr[] = {12, 14, 15, 23, 45}; printf(%u %u\n, arr, arr); Question: Why arr == arr ? Comments: 1. arr is a variable that stores the address of location where arr[0] resides. Complier shows arr and arr having same value. Shouldn't arr be the address where arr resides? Thanks Monish