hello everybody,
here i've a doudt is
there any difference between
const int i
int const i;
pls explain me
bye
thanx
srinu
hello everybody,
here i've a doudt is
there any difference between
const int i
int const i;
pls explain me
bye
thanx
srinu
nope, no difference.
A difference only exists when you are using pointers right?
there's still no difference. you're probably thinking of the difference between constant pointers and pointers to constants.
const int* a;
int const* a;
are the same. they are both pointers to constant ints
HOWEVER
int* const a;
is a constant pointer to an int