0 votes
in GoLang by
What are string literals?

1 Answer

0 votes
by
A string literal is a string constant formed by concatenating characters. The two forms of string literal are raw and interpreted string literals.

Raw string literals are written within backticks (foo) and are filled with uninterpreted UTF-8 characters. Interpreted string literals are what we commonly think of as strings, written within double quotes and containing any character except newline and unfinished double quotes.

Related questions

0 votes
+1 vote
asked Oct 28, 2022 in Python by SakshiSharma
+1 vote
asked Mar 16, 2021 in JAVA by Robindeniel
...