online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <time.h> void main() { unsigned char a, b; int i; clock_t before = clock(); for (i = 0; i < 10000000; i++) { a *= 2; b *= 2; } printf("elapsed: %lu\n", clock() - before); before = clock(); for (i = 0; i < 10000000; i++) { b *= 2; b *= 2; } printf("elapsed: %lu\n", clock() - before); }

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