Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I just want to know, if you're writing a reasonably short program (~500 lines), and you're basically using a global variable as a const (user inputs it once, and you wont ever change it), then is it ok?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Global variables.

Loading...

Similar Threads for Global variables |
---|

How to understand dimensionless data of MacCormack's method |

Numerical Integration with variable limits MATLAB |

C/++/# How to integrate when one of the limits is a variable? |

**Physics Forums | Science Articles, Homework Help, Discussion**