Doubt in 1d array selection sort

while doing the program why have we use sizeof() can you please explain