online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
# How many different "x" variables are in this code segment? # Follow the control follow and Explain each output. x=88 def zeroThis1(): x=0 def zeroThis2(x): x=0 def zeroThis3(): x=0 return x def zeroThis4(x): x=zeroThis3() def zeroThis5(): global x x = 77 def main(): x = 99 zeroThis1() print(x) zeroThis2(x) print(x) x=zeroThis3() print(x) zeroThis5() print(x) main() print(x) zeroThis4(x) print(x)

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



Program is not being debugged. Click "Debug" button to start program in debug mode.