#1

can someone explain to me why sometimes people add "const" to their stocks, and sometimes don't?
(Ex: stock(Name[]) ; stock(const Name[]))
Reply
#2

once a const is declared, you cannot change its value. Hence the name. they use stock(const Name[])) so that Name cannot change anywhere in the code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)