CT_Bolt
December 16th, 2006, 20:46
Information:
I know how to dynamically allocate and free memory in C++
Problem:
I tried to dynamically allocate memory in C and it doesn't support these 2 functions:
new, delete
Question:
How do i write this code in C?
int *x;
x = new int[5];
delete [] x;
x = 0;
I know how to dynamically allocate and free memory in C++
Problem:
I tried to dynamically allocate memory in C and it doesn't support these 2 functions:
new, delete
Question:
How do i write this code in C?
int *x;
x = new int[5];
delete [] x;
x = 0;