previous | start | next

Sample executions

1.

Enter two integers separated by whitespace: 5 10
You input values 5 and 10
Max = 10, Min = 5
     

2.

Enter two integers separated by whitespace: 3.4 19
You input values 3 and 2862629
Max = 2862629, Min = 3
     

In example 2, only the first conversion succeeds (status is 1).

3 is stored in x. The second conversion fails since an integer can't start with "."

So y is not initialized.

No exception is thrown in C

So x and y are printed, but the value of y is whatever happend to be in the memory location for y



previous | start | next