Thank you.
Type: Posts; User: Once-ler
Thank you.
#include <stdio.h>
int main()
{
char b[1000];
unsigned long long int i =18446744073709551615 ;
sprintf( b, "Formatted data: %ulld", i );
puts( b );
if (i&1)...
I tried that with 18446744073709551615 and it keeps giving me a negative number
Thanks for your help.
what if I want to work with all positive numbers what would the range be then?
except that it dosen't work all the way to 18446744073709551615
I keep getting a negative number
Thanks you guys.
add ll in %lld fixed the problem. Thankyou so much.
How do I get this to work?
#include <stdio.h>
int main()
{
char b[1000];
long long int i = 42393848474;
sprintf( b, "Formatted data: %d", i );
puts( b );
...
Without lossing information?