Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列内の最大値と最小値を見つける場合。初期化しますorしかし、最小値の場合max =0、max=temp[0]; 初期化する必要はありませんmin =0かmin=temp[0]... なぜですか?
max =0
max=temp[0];
min =0
min=temp[0]