??? 08/08/07 10:32 Read: times |
#142927 - ...and, 8051 specifically Responding to: ???'s previous message |
Oliver Sedlacek said:
char temperature_array [20]; int i; for (i = 0; i < 21; i++){When i is 20, temperature_array[i] will be out of bounds! Juergen Christoph has already covered this: http://www.8052.com/forum/read.phtml?id=142922 Also, specific to the 8051, it is pointless and wasteful to use an int to index an array of only 20 elements! (most 8051 compilers use 16 bits for an int) |
Topic | Author | Date |
help required with array manipulation in c# | 01/01/70 00:00 | |
just having formatted | 01/01/70 00:00 | |
array not float? | 01/01/70 00:00 | |
Try This | 01/01/70 00:00 | |
but be sure to comment it carefully! | 01/01/70 00:00 | |
Why do you keep saying C# ?? | 01/01/70 00:00 | |
Two things that are definitly wrong | 01/01/70 00:00 | |
Two things wrong with thing 1 | 01/01/70 00:00 | |
Sorry and Thanks | 01/01/70 00:00 | |
Also.. | 01/01/70 00:00 | |
...and, 8051 specifically | 01/01/70 00:00 | |
8051 in C programming | 01/01/70 00:00 | |
first and second![]() | 01/01/70 00:00 |