Say i have a bunch of functions that will be using int = price; for instance. Can i set this outside int main and all the functions so they all call to it?
For example here i called int price outside main but there will be more functions using it. Is this fine?
int price;
int main()
{
cout << price;
return 0;
}