online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// static blocks and variables class Main { // static variable static int a = m1(); // 2 // static block static // 5 { System.out.println("We are inside static block"); // 6 } // static method static int m1() // 3 { System.out.println("We are inside method m1"); .// 4 return 20; // 7 } // static main method public static void main(String[] args) { System.out.println("Value of a : "+ a); // 1 System.out.println("We are inside main method"); // 8 } }

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