online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> typedef struct{ unsigned char Bit0:1; unsigned char Bit1:1; unsigned char Bit2:1; unsigned char Bit3:1; unsigned char Bit4:1; unsigned char Bit5:1; unsigned char Bit6:1; unsigned char Bit7:1; } Bits_TypeDef; typedef union{ unsigned char Byte; Bits_TypeDef Bits; } Byte_TypeDef; Byte_TypeDef x; int main() { x.Byte = 0xAA; printf("%i, %i, %i, %i, %i, %i, %i, %i", x.Bits.Bit0, x.Bits.Bit1, x.Bits.Bit2, x.Bits.Bit3, x.Bits.Bit4, x.Bits.Bit5, x.Bits.Bit6, x.Bits.Bit7); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue