#include //void has no return void addone(int *numptr) { (*numptr)++; } main() { /* This bit of code will print out the address of the variable number, and then incremement number by using the numptr */ int number = 7; int *numptr; numptr = &number; printf("\nOriginal values of variables:\n"); printf("Value of numptr is %d, Value of number is %d\n", *numptr, number); addone(numptr); printf("\nNew values of variables:\n"); printf("Value of numptr is %d, Value of number is %d\n", *numptr, number); }