Here is my sample code
#include void main() { int arr[]={1,2,3,4,5,6}; char *ptr,a; a=\'c\'; ptr=&a; int *ptr1,a1; a1=4; ptr1=&
From Wikipedia
When sizeof is applied to the name of an array, the result is the size in bytes of the whole array. (This is one of the few exceptions to the rule that the name of an array is converted to a pointer to the first element of the array.)