What is the output of the below code?
Note: Assume all necessary imports are done
func main() {

arr := [6]int{10, 20, 15, 2, 90, 23}
for i := 1; i < len(arr)-1; i++ {
if arr[i] >= arr[i-1] && arr[i] > arr[i+1] {
fmt.Println(arr[i])
}
}

}

90

20

20, 90

15, 90

Verified Answer
Correct Option - c

To get all Infosys Certified Go Programmer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in