Just to point it out, you should technically be using %llu instead of %lld for an unsigned value, though that would not explain the problems described here.

On 5/19/25 01:14, hahahahacker2009 wrote:
I'm writing a program that use uvlong on 9legacy raspberry pi.
uvlong n;
scanf("%lld", &n);
print("%lld", n);
But after compiling the program and input a small number (8), it print 0. I modified it and compile with pcc, but it print a very big number then.
unsigned long works. What's the problem with uvlong?
*9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions <https://9fans.topicbox.com/groups/9fans> + participants <https://9fans.topicbox.com/groups/9fans/members> + delivery options <https://9fans.topicbox.com/groups/9fans/subscription> Permalink <https://9fans.topicbox.com/groups/9fans/T3df06e15ad1bc104-Mac03b7f4a672ca1629a2c403>
------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T3df06e15ad1bc104-M4404927139d4f986359e8b9b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to