online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <stdlib.h> char **matrizExemplo() { char **vet; char tamVetor = 1; vet = malloc(sizeof(char)*tamVetor); vet[0] = malloc(sizeof(char)*10); strcpy(vet[0], "teste"); printf("Dentro da funcao vet[0] e: %s\n", vet[0]); return vet; } int main() { char **retorno; retorno = matrizExemplo(); printf("Retorno e: %s\n", retorno[0]); free(retorno[0]); free(retorno); 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