Re: [algogeeks] sizeof operator C..

2011-08-08 Thread Dipankar Patro
Try searching a bit on the group before posting. This has been already discussed a couple of times on this group itself. a is an array of 2 integers, thus sizeof(a) = 2*size of(int) = 8 &a is the address where the the address of the array is stored. Thus sizeof(&a) = sizeof(*pointer*) = 4 bytes(on

[algogeeks] sizeof operator C..

2011-08-08 Thread Brijesh Upadhyay
#include #include int main() { int a[2]={1,2}; cout