I was trying to initialise a array made by pointer:
the code I used was:
int c = 15;
Struct *Pointer[c] = {NULL};
memset( pointer, 0, c *sizeof(pointer) );
It worked, But this memset() function not only initialised my Pointer array, but also initialise all my other arrays...
is there any way to fix it?
I can not use for(){} or while function as it will increase my Time complixcity...
Cheers'
Struct *Pointer[c] = {NULL};"works" I'm curious as to how. I assume thePointervspointerdifferent is just a typo (that I also don't understand, as there is literally no "typing" to introduce a "typo" when copy/pasting what is supposed to be functioning code).