pointer initialisatiion

is there any rule that pointer should not be initialised at the same time of declaration

like int*p=10;

or int a=10;

int *p=&a;

1Comment
Parimal Andhalkar @parimal_andhalkar
14 Dec 2015 03:03 pm

no rule . you can do this both way

but pointer must be initialized before use.

Pages