C language pointer

C language pointer

Define a pointer

int* p;
Source:ww‮ttual.w‬uri.com

example:

int* pi, i;
i = 123; // 
pi = &i; // pi stores the address of i and it is a pointer
printf("%d", *pi);  // Get the value of the address pointed by the pointer
Created Time:2017-08-29 09:52:25  Author:lautturi