How to use pointer to assign a value in C language

ww‮w‬.lautturi.com
How to use pointer to assign a value in C language

In C, the & symbol is used to assign the address of a variable to a pointer.

int* pc, c;
c = 5;
pc = &c; 

// the pc value is equal to address of c
// the value *pc  is qeual to c
Created Time:2017-08-22 14:21:41  Author:lautturi