| ??? 01/06/02 15:51 Read: times |
#18380 - Unsigned int in SDCC |
I have a problem. I'm beginner in programming C. I've been trying to do some working code on my Atmel8052 but faced problems right at start :
If I declare for example a variable: unsigned int temp; and in main(); temp=65535-50; printf("%d",temp); it prints -50 on the terminalscreen... Why is that? Shouldn't it print 65485? I'm using SDCC.. Sorry for my bad language... |
| Topic | Author | Date |
| Unsigned int in SDCC | 01/01/70 00:00 | |
| RE: Unsigned int in SDCC | 01/01/70 00:00 | |
RE: Unsigned int in SDCC | 01/01/70 00:00 |



