Hi,
I'm litle confused by the const modifier, particularly when use const
char* or char*.
Some dude over here said it should be const char when you dont modify
it content inside the function, I read somewhere that it when you
won't modify after its initialization. ..
So when exactly do I use one or another? Is it *wrong* not use const
when I should?
thanks in advance.
Leonardo.
I'm litle confused by the const modifier, particularly when use const
char* or char*.
Some dude over here said it should be const char when you dont modify
it content inside the function, I read somewhere that it when you
won't modify after its initialization. ..
So when exactly do I use one or another? Is it *wrong* not use const
when I should?
thanks in advance.
Leonardo.
Comment