NCEP CCS Conversion Guide |
Issues Converting FORTRAN and C/C++ Programs |
Back to Main Page |
Topic: Size of long and long int variables in C | |
Posted by: Stephen Gilbert
Updated by: |
Post Date: 12/06/2002
Last Updated: |
Problem:
The size of "C" variables long and long int, are different on snow/frost
depending on how the program is compiled.
Solution: Example: Consider the following program: #include <stdio.h>
When this program is compiled with 32-bit addressing (-q32), the ouput is: size of int = 4
However, if compiled with -q64, we get: size of int = 4
|
Back to Main Page |