*p=44 *p=66
Comments:
p
is a variable, so its contents can change.
First it points at a
, but then it is
changed to point to b
.
#include <stdio.h> int main( void ) { int a = 44 ; int b = 66 ; int *p ; p = &a ; printf("*p=%d\n", *p ); p = &b ; printf("*p=%d\n", *p ); system("pause"); return 0; }