August 2021
Beginner
112 pages
1h 23m
English
| Puzzle 5 | A Raw Diet |
| | package main |
| | |
| | import ( |
| | "fmt" |
| | ) |
| | |
| | func main() { |
| | s := `a\tb` |
| | fmt.Println(s) |
| | } |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will print: a\tb
The Go spec[1] says
There are two forms: raw string literals and interpreted string literals.
Raw strings are enclosed in backticks interpreted strings are enclosed in quotes. In raw strings, \ has no special meaning, ...
Read now
Unlock full access