hi guys, i have this code
#include <stdio.h>
#include <stdlib.h>
int main(){
unsigned long long *x;
x = (unsigned long long*)malloc(600851475143ULL*sizeof(unsigned long long));
if (x!=NULL){
printf("success\n");
getchar();
}
else {
printf("fail\n");
getchar();
}
printf("%I64u\n",600851475143ULL);
getchar();
return 0;
}
this is a part of some program im trying to make, i just want to ask you, it compiles fine, the dynamic memory allocation works fine but i get this warning which i cant get rid of
6 C:\..\test.c [Warning] large integer implicitly truncated to unsigned type
any help on how to deal with it?
thanks :)