online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdlib.h> #include <stdio.h> void memaloca(int *a,int t) { a=(int*)malloc(t*sizeof(int)); } int main() { int tam; int *v; printf("Insira o tamanho do vetor: "); scanf("%d",&tam); memaloca(v,tam); if(v) { for(int i=0;i<tam;i++) { printf("Insira o valor %d : \n",i+1); scanf("%d",&v[i]); } } else printf("Memoria insuficiente!"); 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