#include int main() { // Example pointer manipulations int salary1, salary2; // 32-bit numbers int *ptr; // a pointer specifying the address of an int variable salary1 = 67500; // salary1 = $67,500 = 0x000107AC ptr = &salary1; // ptr = 0x0070, the address of salary1 salary2 = *ptr + 1000; /* dereference ptr to give the contents of address 70 = $67,500, then add $1,000 and set salary2 to $68,500 */ printf("salary1 = %d\n",salary1); printf("salary2 = %d\n",salary2); printf("ptr = %p\n",ptr); printf("&salary1 = %p\n",&salary1); printf("&salary2 = %p\n",&salary2); printf("&ptr = %p\n",&ptr); }