online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> int main() { char s1[]="Zhang San"; char s2[20]; char s3[100]; int i; for(i=0;s1[i]!='\0';++i) { putchar(s1[i]); } printf("\n"); scanf("%[^\n]",s2); printf("%s\n",s2); getchar(); gets(s3); puts(s3); return 0; }

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