Changes between Version 6 and Version 7 of ResumedC
- Timestamp:
- Apr 29, 2009, 1:13:04 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ResumedC
v6 v7 135 135 /* is like */ 136 136 total = total + 1; 137 138 total++; 139 /* is like */ 140 newtotal = total; 141 total + 1; 142 /* Note that in 'newtotal' is assigned the value of 'total', and AFTER, total is incremented */ 137 143 138 144 total += 2; … … 301 307 }}} 302 308 303 Imagine a structure of 226 bytes long, for example, that's a lot of data to move around, so you can declare an array of pointers:309 Imagine a structure that the total size of every structure are 226 bytes, that's a lot of data to move around all the time, so by declaring an array of pointers you will use now the pointers and browse them, instead of the arrays, on this case, you are moving 4 bytes around, instead of 226. 304 310 {{{ 305 311 #!C … … 313 319 list_p[current] = &list[current]; 314 320 }}} 315 Now you have to move only 4-byte around, instead of 226 all the time 321 316 322 317 323