int
sum_row[n], sum_column[k];
Make sure you first initialise these arrays to zeros, since uninitialised, they contain random values and you use:
sum_row[i]+=tab[i][j];...
Type: Posts; User: Ali3nSVK
int
sum_row[n], sum_column[k];
Make sure you first initialise these arrays to zeros, since uninitialised, they contain random values and you use:
sum_row[i]+=tab[i][j];...
@Salem
That was exactly it! Thank you very much for your help, I'm not sure how I overlooked this so many times when debugging. :) Again, thank you.
@failure67
Thank you too for your time and...
Hmm yes I understand, there are some errors I need to deal with, like the empty line, but for example:
lst->strings[i][j] = L'\0';
This line does not NULL the pointer. The whole inner...
I'm not sure if thats the issue since I've tried commenting out the cleanup and it still receives SIGSEGV. Here is the function:
void cleanUp(TList *lst)
{
for (int i = 0; i <...
Yes, I will correct that part, thank you. But the main problem is it should not fail since I have lots of memory available. :(
Hello, I'm having a slight problem with pointer arithmetics, specifically when trying to reallocate an array of pointers to wide character, previously allocated with malloc.
I have a 2D array...