online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> int main() { /* char string[100]; printf("\n\nmasukkan string :"); gets(string); printf("output dari string adalah"); puts(string); */ char b[50], a; scanf("%s",b); printf("hasil output: %s\n", b); getchar(); //kalau tidak memakai getchar(), getchar() pada line 9 akan memakan "\n" a = getchar(); putchar(a); 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