i have this code (im working with big files support in ansi c)
unsigned long int tmp,final
final=1231123123123213
tmp=final;
printf("%llu %llu \n",final,tmp);
printf("%llu \n ",tmp);
it prints
1231123123123213 0
1231123123123213
i dont get it
Format specifier used with
unsigned long intis%lu. You are using%llu, which is format specifier forunsigned long long int. The behavior of your code is undefined.You need to decide what it is you are trying to do. Either use the correct format specifier (to match the type), or use the right type (to match the format specifier).