Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/08/07 10:16
Read: times


 
#142926 - Also..
Responding to: ???'s previous message
char temperature_array [20];
int i;
for (i = 0; i < 21; i++){


When i is 20, temperature_array[i] will be out of bounds! In C, and array of 20 elements can only be indexed by values 0 to 19.

List of 13 messages in thread
TopicAuthorDate
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      

Back to Subject List