Forum Discussion
Altera_Forum
Honored Contributor
16 years agoabout niosII
Hi, I write in NiosII this instruction int a,b; int r; a=4; b=98; r=a&&b; the problem i have a message error ,when i use && ,I don't know why ? can sameone help me to use this com...
Altera_Forum
Honored Contributor
16 years agodefining variables in for loops is legal in C++, but not in C. Visual isn't a 100% compliant C compiler and sometimes lets you do non standard things ;)
The biggest problem with this code is that you use the IM and im1 pointers without assigning them a proper value first. This will probably crash in most cases. You should define static arrays instead.