Comment Comment by bigdict int main (int argc, char* argv[]) { (void)argc; (void)argv; struct Meow* p_cat = (struct Meow*)malloc(sizeof(struct Meow)); struct Bark* p_dog = p_cat; // :3 return 0; } Why declare main that way if you are going to discard the arguments?Why cast the malloc? This isn't C++. parent bigdict 6 years ago
Why cast the malloc? This isn't C++.