CSE MCQs :: GO
- Which of the following is true about static type declaration of a variable in Go?
- List out the built in support in GO?
- Explain how arrays in GO works differently then C?
- An lvalue may appear as either the left-hand or right-hand side of an assignment.
- Which one of the following is correct?
- Explain workspace in GO?
- What are the advantages of GO?
- What are the benefits of using Go Programming?
-
What is the output of the following code snippet?package mainimport "fmt"func main() {x := 1y := &xfmt.Println(*y)*y = 2fmt.Println(x)}
A.
Static type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name
|
B.
A variable declaration has its meaning at the time of compilation only, compiler needs actual variable declaration at the time of linking of the program
|
C.
Both of the above
|
D.
None of the above
|