Array=5,4,3,2,1 Incase a[0] highest number aayi vannathenkil.. second largest =largest; largest=a[i] Egane ezhuthaan kayyillalooo Karam largest 1st condition thanne true aayi...pinne egane second largest kaaanaaa
@csclassroom2020
Жыл бұрын
Here a[0] is 5 which is greater than largest, because largest is set as MIN_VALUE... so second largest is assigned with the value of largest.. that means, second largest is assigned with MIN_VALUE again. because at the beginning largest is set as MIN_VALUE. After assigning the value to second largest only we are updating the value of largest to 5... The issue you pointed out will be true if you write largest=a[i] first and then second_largest= largest
@amalmega
Жыл бұрын
thanks lot...
@fadhil9018
2 жыл бұрын
Thanks
@csclassroom2020
2 жыл бұрын
Welcome
@hrithunath_8075
Жыл бұрын
Positive number mathram store cheyu anegil enthina -1 kodukunee
@arjunn1194
Жыл бұрын
Positive number enn patayumbo ayile 0 um pedum..zero arrayile oru element avam
@we.sapeins
2 жыл бұрын
Nice
@csclassroom2020
2 жыл бұрын
Thanks
@minhaj4249
2 жыл бұрын
value 0 kodthaa pore....
@ashavilayil1187
2 жыл бұрын
You mean minimum value? So what if that array contains negative numbers?
@musicandthemes3772
Жыл бұрын
Thanku Ee video illenkil ngan supply Adikamaayirunu😅
Пікірлер: 14