online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> static char *rand_string(char *str); int main() { char *string, //str *string_result; //str1 int dimensione= 15, i; for(i=0;i<dimensione;i++) { string_result = rand_string(string); printf("%s\n", string_result); } } static char *rand_string(char *str) { const char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJK"; int i; for ( i = 0; i < 10; i++) { int key = rand() % (int) (sizeof charset - 1); str[i] = charset[key]; } str[11] = '\0'; return str; }

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