Errrr... You know what I am speaking about.

new topic     » topic index » view thread      » older message » newer message

Hi all.
Yesterday I was debugging a C program. The program contained these lines:

short Buffer[NCOD][BUFSIZE][NDIFF];
............
short (*b)[BUFSIZE][NDIFF];
............
int j;
b = Buffer[j];

This failed, and I did not understand why.
C, when it deals with pointers, is sometimes a pain in the neck. But instead of
blaming the language, the compliler, its cryptic messages and so on, I started to
scratch my head, and after a while I found my error, corrected it, and got the
program running.
What has this to do with this forum?
Well, I hope you understand.
Best regards.
Regards.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu