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. *******************************************************************************/ typedef struct { int dividend, divisor, result; } intTuple; int compare(const intTuple *e1, const intTuple *e2){ return (e1->result > e2->result)? 1 : 0; } int main() { intTuple tuples[4] = { {96, 8}, {100, 4}, {104, 8}, {108, 16} }; for (int i = 0; i < 4; i++) { tuples[i].result = tuples[i].dividend / tuples[i].divisor; } qsort(tuples, 4, sizeof(intTuple), compare); for (int i = 0; i < 4; i++) { printf("%d ", tuples[i].dividend); } }

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