Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Golang Program to convert Uppercase to Lowercase characters, using binary operator.
In Golang, we can use the binary operators "&" (AND) and "|" (OR) to convert strings from lowercase to uppercase and vice versa. Let's take a simple example and understand how to use these binary operators in Golang.
Example
package main
import "fmt"
func main(){
fmt.Printf("Lowercase characters using OR operator: ")
for ch:='A'; chOutput
On execution, it will produce the following output:
Lowercase characters using OR operator: abcdefghijklmnopqrstuvwxyz
Uppercase characters using AND operator: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Advertisements
