Arduino "creating functions"

A propos “creating functions” chapter.
How does “void findSide(int x, int y)” function “know” that x is “a” and y is “b”?

Hi Tomek,

Welcome to the forum! :partying_face:

It relies on the order in which you pass it the values. So if you did:
It would set x=a, and y=b. If you did:
it would set x=b and y=a.