Timeline for Length of uint8_t* const array
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 21, 2019 at 1:13 | vote | accept | Anum Sheraz | ||
| Mar 5, 2019 at 13:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Feb 3, 2019 at 12:39 | answer | added | Mikael Patel | timeline score: 1 | |
| Feb 3, 2019 at 12:10 | history | edited | Michel Keijzers | CC BY-SA 4.0 |
edited title
|
| Feb 3, 2019 at 10:43 | comment | added | RubberDuck | @MikaelPatel you should post that as an answer. I was going to post the same, but then I saw your comment. | |
| Feb 2, 2019 at 16:54 | comment | added | Anum Sheraz |
int totalPeers = (sizeof(neighbourSet) / sizeof(neighbourSet[0])); worked. Thanks Mikael !
|
|
| Feb 2, 2019 at 15:07 | comment | added | Mikael Patel |
Hint: sizeof() gives the number of bytes. You are looking for membersof(). It is often defined as #define membersof(x) (sizeof(x) / sizeof(x[0])).
|
|
| Feb 2, 2019 at 14:39 | comment | added | Juraj♦ |
you want const uint8_t* const neighbourSet?
|
|
| Feb 2, 2019 at 14:33 | comment | added | Juraj♦ | uint8_t* is a pointer. on AVR it is 2 bytes. on 32bit architectures 4 bytes | |
| Feb 2, 2019 at 14:22 | history | asked | Anum Sheraz | CC BY-SA 4.0 |