title: The result of sizeof(pointer variable )/sizeof(first element of array ) always shows 2
body: <p>Normally to find the size of the array, we do..</p>
  
  <pre><code>int A[]={1,2,67,9,0,-1,-90};
  int n=sizeof(A)/sizeof(A[0]);
  printf("the size of the array is %d\n", n);`
  </code></pre>
  
  <p>The output of the above code shows size as 7.
  But when A is put into some pointer and then, if we try to do the same, it shows </p>
  
  <pre><code>int A[]={1,2,67,9,0,-1,-90};
  int *B=A;
  int n=sizeof(B)/sizeof(B[0]);
  printf("the size of the array is %d\n", n);
  </code></pre>
  
  <p>the answer is 2</p>
  
  <p>How do I find the size of the array using this pointer.</p>