| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | [C] (Thanks)An interesting question |
Hi Roy. 14-Jan-04 12:06:34, Roy J. Tellason wrote to Bill Birrell RJT> Bill Birrell wrote in a message to prabir senapati: >> arithmetic on the elements of this array. How is this possible, >> after all elements in the array are characters not integers ? Can >> u pls explain me a bit . BB>> Ints are whole numbers between 0 and MAXINT in value. Chars are BB>> whole numbers in the range 0 to MAXCHAR (often 255 for unsigned BB>> and 127 for signed char). Both ints and char can be signed or BB>> unsigned. Integer arithmetic can be performed on both types. RJT> I still think there's something odd about the concept of a RJT> "signed char", and I particularly think it's odd that it's in RJT> some cases the default.. signed is the default for long int and short, why should char be the exception? OTOH I've never found signed chars more convenient than unsigned. -=> Bye <=- ---* Origin: Keyboard not connected, press to continue. (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 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™.