by aninteger · 11y ago · 0 comments
char ptr = malloc(10); // this is not valid C++
vs
char
I believe files with the .c extensions are compiled as C, not C++.