Timeline for Fail to return int value from a function
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 6, 2019 at 2:43 | history | became hot network question | |||
| Jun 5, 2019 at 20:21 | vote | accept | guyd | ||
| Jun 5, 2019 at 19:22 | answer | added | Juraj♦ | timeline score: 2 | |
| Jun 5, 2019 at 19:10 | comment | added | guyd |
@Juraj - I know the mean of &, but why it doest not pass its value a to retval?
|
|
| Jun 5, 2019 at 18:59 | comment | added | Juraj♦ | it is not an Arduino question. & is 'reference'. the parameter with & is not a value, but a reference to a variable | |
| Jun 5, 2019 at 18:58 | comment | added | guyd |
@Juraj can you explain why? and why is it different from char variable ?
|
|
| Jun 5, 2019 at 18:57 | answer | added | chrisl | timeline score: 2 | |
| Jun 5, 2019 at 18:56 | comment | added | Juraj♦ |
bool myJSON::getINTValue(const char *key, int &retval){
|
|
| Jun 5, 2019 at 18:48 | history | edited | guyd | CC BY-SA 4.0 |
edited title
|
| Jun 5, 2019 at 18:41 | history | asked | guyd | CC BY-SA 4.0 |