rizalafande
Junior Member level 2
long int in c
hi,
i got the problems to use the 'long long int' and 'unsigned long int' data types in C programming (becasue i would like to use 64bit and unsigned 32bit data in my design). when i run the simulation using Linux compiler (gcc), it is always give me an error "warning: this decimal constant is unsigned only in ISO C90". example of my codes are written below.
===================
long long int newValue (long long int a)
{
unsigned long int res;
a = 2147483700;
res = a*1;
}
====================
can anyone helps me out. thanks.
hi,
i got the problems to use the 'long long int' and 'unsigned long int' data types in C programming (becasue i would like to use 64bit and unsigned 32bit data in my design). when i run the simulation using Linux compiler (gcc), it is always give me an error "warning: this decimal constant is unsigned only in ISO C90". example of my codes are written below.
===================
long long int newValue (long long int a)
{
unsigned long int res;
a = 2147483700;
res = a*1;
}
====================
can anyone helps me out. thanks.