tags:

views:

103

answers:

2
+4  A: 

I recommend using standard order (i.e. unsigned long int). %lu is the format tag you're looking for.

printf("%lu", 5ul);
eq-
Sorry, I didn't know there was a conventional order. Thanks for letting me know.
alex
+4  A: 
    int unsigned long number = 600851475143LU;
    printf( "%lu", number );

prints 600851475143

Kiril Kirov
don't forget to add `L` to end of that integer.
Matt Joiner
Argh, yep.. Thanks for the remark. I just copied it from the posted question.
Kiril Kirov