Qtr No. 213, New Town Yehlanka Indore 454775
What will be the output when the below-mentioned code snippet?
package main
import "fmt"
func main() {
num1:=25;
for ;; { //-----------------Line 1
if(num1==30){
break;
}
fmt.Printf("%d ",num1);
num1++;
}
}
25 26 27 28 29 30
Infinite Loop
Error at Line 1: Incorrect syntax
25 26 27 28 29
To get all Infosys Certified Go Developer 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