Closed Help with syntax Tags: Programming Apps Last response: July 8, 2011 3:04 PM in Applications Share bsnowman17 July 7, 2011 10:16:59 PM bit_X = ((byte_Y & 0x80) ? 1 : 0); Could someone explain what is happening here? X is a bit Y is a byte More about : syntax Best solution Ijack a b L Programming July 8, 2011 6:10:44 AM Share The expression on the right tests whether the leftmost bit of byte_Y is set. If so it sets bit_X to 1, otherwise it sets it to 0. byte_Y & 0x80 Is the test (0x80 is 10000000 in binary). (A ? 1 : 0) Is the conditional. bsnowman17 July 8, 2011 6:21:37 AM Best answer selected by bsnowman17. Can't find your answer ? Ask ! Get the answer SR-71 Blackbird July 8, 2011 3:04:40 PM This topic has been closed by Area51reopened Can't find your answer ? Ask ! Publish Related resources SynTax Errors Forum Syntax SV400 mb audio connection help please Forum Acer loptop error syntax SIF file Forum Syntax and command Forum What does syntax error in the SIF file that setup uses mean Forum cmd prompt not allowing for any syntax cmds to run Forum Syntax for Command Line with Spaces Forum Syntax for "sysopt noproxyarp" Forum "res://shdoclc/ syntax .htm#" Forum correct syntax for networking Forum Installation ERROR, Syntax error in this manifest file: DX.. Forum Command Line Syntax Forum command line option syntax error Forum Command Line Syntax Forum Any info on txtsetup.oem syntax ? Forum What is the difference between Extended and normal version of a software? Forum Need help with Graphics Drivers Forum [Solved] C++ help Forum Help Forum Problem with Flash-based games Forum More resources Read discussions in other Applications categories Graphics Internet Applications Multimedia Office Security CAD Distributed Computing Drivers Enterprise Software Firmware Programming Photoshop Skype Wordpress !