| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | [C] typecasting |
Sat 2004-04-24 15:38, Pascal Schmidt (1:153/401.2) wrote to Jay B:
JB>> printf("%d\n", (unsigned int)i);
PS> Your format specifier and cast do not match. You want:
PS> printf("%u\n", (unsigned int) i);
Or just
printf("%u\n", i);
The typecast is redundant.
-- mail{at}ozzmosis.com
--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)SEEN-BY: 633/267 270 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.