Largest and smallest Number doubt

sir instead of Initializing to INT_MAX and INT_MAX
can we directly initialize?? first elemnt as smallest and largest and than check is it right??? or is there any case which fails if we do this??

@tejasddongare its also correct if you set it as first element . no issue :smiley: