2 ms·
> Consider a program that reads x and y from STDIN. A program like this should fail to compile! You can't feed two arbitrary numbers from stdin to the "add" fu
by exDM69 10y ago
> Consider a program that reads x and y from STDIN.
A program like this should fail to compile! You can't feed two arbitrary numbers from stdin to the "add" function above. In order to make it compile, you'd need to add some logic that uses min/max to swap the values so x is less than y.