#include void func( int *p ) { printf( " p = %u\n", p ); // Print the parameter p // We SHOULD use %p (hex), but I like %u (dec) // I will get a warning and I can live with it printf( "*p = %d\n\n", *p ); // Print the variable pointed to by p } int main(int argc, char *argv[]) { int x1 = 4, x2 = 88; func( &x1 ); // Pass address of x1 to function func( &x2 ); // Pass address of x2 to function }