I have tried;
void *malloc(unsigned int); struct deneme { const int a = 15; const int b = 16; }; int main(int argc, const char *argv[]) { struct
Have you tried to do like this:
int main(int argc, const char *argv[]) { struct deneme mydeneme = { 15, 20 }; struct deneme *pmydeneme = malloc(sizeof(struct deneme)); memcpy(pmydeneme, &mydeneme , sizeof(mydeneme)); return 0; }
I have not tested but the code seems correct