Hey guys I am taking a Data Structure class now, and we're using C, but I don't have much experience with C, and as so don't really remember how to use malloc, can anybody help me here. I know it's very similar to it's "new" counterpart in C++.
Code:#include <stdio.h> int main() { int *Articulos; int Cantidad; printf("Cuantos articulos va a facturar?\n"); scanf("%d",&Cantidad); Articulos=(*int)malloc(Cantidad * sizeof int); return 0; }
It says something about "type int unexpected";