int a = 1; int b = 2; int c = 3; int d = 4;
How would I find out if the maximum integer value is stored in variable d?
d
You need to use an array instead of these variables, then you will easily find max element. See the example here
array