You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
259 B
C++

#include <cassert>
#include <iostream>
using std::cout;
using std::endl;
int main(void) {
char** foo = new char*[100];
delete[] foo;
char** bar = (char**) malloc(100*sizeof(char*));
assert(bar != NULL);
// for valgrind to find:
// free(bar);
}