Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

integer data type :long

erheiqin
Beginner
443 Views
I just bought VCF for window, and want to translate my c code to it. I have a question on the integer data type. Is it true that no matter which kind of integer, I can just use "integer" to define it? Is there a corresponding type "long" in C as in VCF?

Thanks,

Erhei
0 Kudos
1 Reply
TimP
Honored Contributor III
443 Views
I just answered the question about big integer types on the linux forum. Define the LONG (8 byte) kind using standard Fortran syntax. The default integer in Intel Fortran is 32 bits. Windows C int and long also are 32 bits. While it does matter which kind of integer, you most likely want the default kind.
0 Kudos
Reply