How many ways we can pass parameters to a function in go programming?



How many ways we can pass parameters to a function in go programming?..

Answer / Prateek Kumar Chahal

There are two ways to pass parameters to functions in Go: by value and by pointer. By value means the original variable is copied, while by pointer allows the function to modify the original variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

What is syntax like in go?

1 Answers  


What are the several built-in supports in go programming?

1 Answers  


What is a string literal?

1 Answers  


Explain workspace in go?

1 Answers  


How can you check a variable type at runtime in go programming language?

1 Answers  


Does go support method overloading?

1 Answers  


Explain pointers in go?

1 Answers  


Explain why type assertion is used in go language?

1 Answers  


What are packages in go language?

1 Answers  


What is string types?

1 Answers  


Explain packages in go program?

1 Answers  


Does go (golang) support pointer arithmetic?

1 Answers  


Categories