Timeline for Add two numbers
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 17, 2017 at 19:29 | comment | added | Peter Cordes |
@JohanduToit: This is a C answer, not an "x86 gcc -O0" answer (or whatever you're programming for), so you can't use some silly hack that happens to generate machine code leaving a value in eax.
|
|
| Dec 7, 2017 at 18:40 | comment | added | user58988 | @JohanduToit In C language, in how it is defined as language you have to use return if the function has to return its result. If one compiler put in eax or rax that result : It is too much fragile (possible change some optimization flag, or change the compiler or the Os or the Pc etc: and the result will be different) | |
| Dec 7, 2017 at 14:55 | comment | added | jdt |
17 bytes: f(a,b){b+=a;a=b;}
|
|
| Oct 20, 2016 at 18:06 | history | undeleted | Dennis | ||
| Oct 20, 2016 at 17:41 | history | deleted | Community Bot | via Vote | |
| Oct 9, 2016 at 10:17 | review | Low quality posts | |||
| Oct 9, 2016 at 10:45 | |||||
| Oct 9, 2016 at 10:00 | history | answered | user58988 | CC BY-SA 3.0 |