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> #include <stdint.h> int main() { unsigned long long ConvertedHex = 0xAABBCCDDEE001122; unsigned long long HexValueArray[8]; unsigned char ValueBuffer[8]; unsigned position = 8; /* HexValueArray[0] = ((ConvertedHex & (0x00000000000000FF))); HexValueArray[1] = ((ConvertedHex & (0x000000000000FF00))) >> 8; HexValueArray[2] = ((ConvertedHex & (0x0000000000FF0000))) >> 16; HexValueArray[3] = ((ConvertedHex & (0x00000000FF000000))) >> 24; HexValueArray[4] = ((ConvertedHex & (0x000000FF00000000))) >> 32; HexValueArray[5] = ((ConvertedHex & (0x0000FF0000000000))) >> 40; HexValueArray[6] = ((ConvertedHex & (0x00FF000000000000))) >> 48; HexValueArray[7] = ((ConvertedHex & (0xFF00000000000000))) >> 56; */ for(int j = 0; j < 8; j++) { HexValueArray[j] = ((ConvertedHex & (0x00000000000000FFull << (j * 8))) >> ((8 * j))); ValueBuffer[position + (j - 8)] = HexValueArray[j]; printf("%x ", ValueBuffer[j]); } printf("\n"); 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