jhbbunch
Joined: 21 Feb 2006 Posts: 220 Helped: 15
|
23 Aug 2008 18:20 how to use 'long long int' or 'unsigned long int' in C prog |
|
|
|
First, you have a return of long long int, buy there is no return of anything in the fucntion. Second whis is res an unsigned long int and a is a long long int? The compiler is warning you that this is valid only in the iso c90 standard. I assume other standards will treat one as signed and the other as unsigned.
And it appears that unsigned long int is a 32 bit value (check this) and long long int is definitely a 64 bit integer. Just change res to long long int.
|
|