Click to See Complete Forum and Search --> : int const&


George2
February 17th, 2008, 04:16 AM
Hello everyone,


We always write const int other than int const, are they the same?

Example,


int const & x = 10;

const int& y = 10;



thanks in advance,
George

Marc G
February 17th, 2008, 06:16 AM
They are the same.

George2
February 17th, 2008, 06:34 AM
Thanks Marc,


My question is answered.

They are the same.


regards,
George