online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <string.h> int main() { int arr[] = {0, 1, 2, 3, 4, 5}; int len = sizeof(arr) / sizeof(int); printf("len = %d\n", len); int temp1 = arr[len - 1]; int temp2 = arr[len - 2]; printf("temp1 = %d\n", temp1); printf("temp2 = %d\n", temp2); memmove(((int *)arr)+2, arr, (len-2)*sizeof(int)); arr[0] = temp1; arr[1] = temp2; for(int i = 0 ; i < len ; ++i) printf("arr[%d] = %d\n", i, arr[i]); }

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