When to Use long in C?
The common practice while coding is to utilize the standard data type, except for scenarios when there is a need to contain values more than its capacity, in those cases the long data type is recommended. It’s important to note that long data types demand more memory space unlike basic data types, thus caution should be exercised upon deciding when to use it, so you should only use it when necessary.
C Long
In C, the long keyword is a datatype modifier that can be applied to the basic datatypes to increase the range and size of values their variables can store. For example, a long int variable can store integer values that range from -2,147,483,648 to 2,147,483,647 which is significantly greater as compared to the normal int data type, which can store integer values that range from -32,768 to 32,767 in the 16-bit compiler.