Post History
C (gcc), 33 31 bytes f(x,y){return x+y+(x==2&y==2);} Try it online! Saved two bytes thanks to Shaggy
Answer
#2: Post edited
# [C (gcc)], 33 bytes- <!-- language-all: lang-c -->
f(x,y){return x+y+(x==2)*(y==2);}[Try it online!][TIO-ksufbz4w]- [C (gcc)]: https://gcc.gnu.org/
[TIO-ksufbz4w]: https://tio.run/##TYpBCsIwEADvecVSEXZNFBFvaX2JF0kb3aCpxBYaSt4e24rQ08DMmP3dmJwtDirSGJquDx4GGSUOVXWiHcYZOuUNe/Ps6wbKT1dze3hcBPsOXjf2SGIUALYNgLNjqOCoJ5Rw1iAl01TnY/W43@P@j6OlA7zDlC0WW4ZCWWTliLRYl6svFpNEEvkL "C (gcc) – Try It Online"
- # [C (gcc)], <s>33</s> 31 bytes
- <!-- language-all: lang-c -->
- f(x,y){return x+y+(x==2&y==2);}
- [Try it online!][TIO-ksvdiyag]
- Saved two bytes thanks to [Shaggy](https://codegolf.codidact.com/comments/thread/4241#comment-13053)
- [C (gcc)]: https://gcc.gnu.org/
- [TIO-ksvdiyag]: https://tio.run/##TYrRCoIwGEbv9xQfRrGfWUR0N@1Juonp6h81Yyko4rOvaQTefB@cc8z@bkyMVvb5QGOo2y549GpQsi/L025IQ3qKG/bm2VU1ik9bcXN4XAT7Fq8be0liFIBtAuTMGCWOOl2Bs4ZSTMnOxapxv8b9G0eLB94haSuzLSPLreTcEWmxNlefLWQSk4hf "C (gcc) – Try It Online"
#1: Initial revision
# [C (gcc)], 33 bytes <!-- language-all: lang-c --> f(x,y){return x+y+(x==2)*(y==2);} [Try it online!][TIO-ksufbz4w] [C (gcc)]: https://gcc.gnu.org/ [TIO-ksufbz4w]: https://tio.run/##TYpBCsIwEADvecVSEXZNFBFvaX2JF0kb3aCpxBYaSt4e24rQ08DMmP3dmJwtDirSGJquDx4GGSUOVXWiHcYZOuUNe/Ps6wbKT1dze3hcBPsOXjf2SGIUALYNgLNjqOCoJ5Rw1iAl01TnY/W43@P@j6OlA7zDlC0WW4ZCWWTliLRYl6svFpNEEvkL "C (gcc) – Try It Online"