M
Maedowan
Does this code delete right amount of memory:
struct SAMPLE{
int a,b,c;
char zzz;
};
void* ptr;
int main()
{
ptr=(void*) new[SAMPLE];
delete ptr; //delete void pointer without casting it
}
struct SAMPLE{
int a,b,c;
char zzz;
};
void* ptr;
int main()
{
ptr=(void*) new[SAMPLE];
delete ptr; //delete void pointer without casting it
}