online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char* expression[1000][256]; char buffer[256]; int line = 0; while (fgets(buffer, 256, stdin)) { int word = 0; char* token = strtok(buffer, " \r\n"); do { expression[line][word] = calloc(sizeof(char), strlen(token) + 1); strcpy(expression[line][word], token); word++; } while ((token = strtok(NULL, " \r\n")) != NULL); line++;; } printf("'%s', '%s', '%s'\n", expression[0][0], expression[0][1], expression[0][2]); 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