Programming
Python
R
Java
C
C++
C#
WEB
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
MORE
Examples1
Python
GO
R
Java
C
C++
C#
Examples2
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Seo Tools
Code Minifier
Code Beautifier
Language Compiler
Misc Tools
File Converter
References
C
C++
Python
Java
PHP
JavaScript
Examples
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Home
About
Contact
JetPack
Multi Themes-->>
Code it ALL
Scroll TOP
Find ASCII Value of Character in go - CodeGK
Δ Go Examples
Examples
Hello world in go
Add Two Numbers in go
Find the Square Root in go
Swap Two Variables in go
Generate a Random Number in go
Find ASCII Value of Character in go
♦ Find ASCII Value of Character in go
♣ Example1: Find ASCII Value of Character in go
Input:
Run CODE
Reload Code
Copy Code
package main import ( "fmt" ) func main() { var c1 = 'B' var c1_ascii = int(c1) fmt.Printf("Ascii value of %c is %d\n", c1, c1_ascii) var c2 = '%' var c2_ascii = int(c2) fmt.Printf("Ascii value of %c is %d\n", c2, c2_ascii) }
Output: