What is the syntax for for-loop in go?



What is the syntax for for-loop in go?..

Answer / Shweta

The syntax for a for-loop in Go is:n```gonfor i := range collection {n // Your code heren}n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

Why should one use go programming language?

1 Answers  


Can we declare a class in go?

1 Answers  


Explain packages in go program?

1 Answers  


What are channels and how can you use them in golang?

1 Answers  


Does go support method overloading?

1 Answers  


Who is the father of go (golang)?

1 Answers  


How is len() different from cap() function?

1 Answers  


How can an entry be deleted from a map?

1 Answers  


Is go a case sensitive language?

1 Answers  


How we can print type of a variable in go programming?

1 Answers  


What are the several built-in supports in go?

1 Answers  


Does go (golang) support generic programming?

1 Answers  


Categories