online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc, char *argv[]) { //if not exactly 1 argument, print error message a value of 1 if (argc == 2) { for (int i = 0; i < strlen(argv[1]); i++) { if (!isdigit(argv[1][i])) { printf("Usage: ./caesar key\n"); return 1; } } int a = atoi(argv[1]); printf("%i\n", a); } else printf("Usage: ./caesar key\n"); }

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