Currently writing a program which uses several constant values (all numbers) in main() and also in various functions. Currently I initialise and assign these values in main() and pass the required ones to each function.
As these values do not get changed would it be better/quicker to have these numbers defined as const global variables?
Thanks for the help!
As these values do not get changed would it be better/quicker to have these numbers defined as const global variables?
Thanks for the help!
Comment