Go Programming Articles

Page 86 of 86

Golang program to turn off the k'th bit in a number.

Rishikesh Kumar Rishi
Rishikesh Kumar Rishi
Updated on 17-Mar-2021 227 Views

ExampleConsider n = 20(00010100), k = 3 The result after turning off the 3rd bit => 00010000 & ^(1 16sApproach to solve this problemStep 1 − Define a method, where n and k would be the arguments, return type is int.Step 2 − Perform AND operation with n & ^(1

Read More

How To Install Go (Golang) 1.7 on CentOS 7

Sharon Christine
Sharon Christine
Updated on 20-Jan-2020 352 Views

In this article, we will learn about how to install and configure Go (golang) which is developed by Google and its open source programming language. It’s a simple, efficient and reliable programming language for development with minimalist.PrerequisitesA CentOS machine installed.A non-root user with Sudo permission on the CentOS machine.Downloading and Installing the GOThe Go (golang) is not up to date on the CentOS repository, so we will manually download and install the package directly from the Go lang website and also make sure that we have the latest version which is compatible with our system architecture.Let’s move to the writable ...

Read More
Showing 851–852 of 852 articles
« Prev 1 82 83 84 85 86 Next »
Advertisements