View Single Post
  #1   Spotlight this post!  
Unread 23-06-2002, 22:57
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Programming question

Posted by Nick at 1/14/2001 10:52 PM EST


Student on team #240, Mach V, from Jefferson Monroe High School and Visteon.



Here's a thought. Say I were to input a standard 1 byte analog device (y). But instead of setting the variable (x) as a byte I change it to, let's say a nib (4 bits). I am curious to the value x. Would the program give a simple error? Or would x be assigned a value? If y = 255 then x = 15? If y = 0 then x = 0? Here's the real challenge if y = 240 (binary 11110000) does x = 15 or x = 0? If anyone has the slightest clue please let me know.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.