Code Snippets C

#include
void main()
{
long longArray[] = {1L, 2L, 3L};
printf(" first element address: %p value: %d\n",
longArray, *longArray);
printf("second element address: %p value: %d\n", longArray + 1,
*(longArray + 1));
printf(" third element address: %p value: %d\n",longArray + 2,
*(longArray + 2));
printf(" type long occupies: %d bytes\n", sizeof(long));
}