TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jay B
from: John Guillory
date: 2004-04-25 01:26:28
subject: [C] typecasting

Re: [C] typecasting
  By: Jay B to All on Sat Apr 24 2004 11:46 am

 > From: "Jay B" 
 > int main(void) {
 >     int i = -33;
 > 
 >     printf("%d\n", i);
 >     printf("%d\n", (unsigned int)i);
        The %d specifies "signed", change it to %u and it'll be unsigned.

 >     return 0;
 > }
--- SBBSecho 2.00-Win32
* Origin: MLC-Group BBS -- mlc-group.dyndns.org (1:396/60)
SEEN-BY: 633/267 270
@PATH: 396/60 45 106/2000 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™.