Couple of points:-

Code tags end with [/code], not [\code]

You should declare array as:-
float array[6] = {2.02,2.05,3.20,3.28,5.0,5.0};

What type is selection1?

Remember, indexes in C range from 0 to n-1, where n is 6 here.