Top "Literals" questions

a notation for representing fixed values in source code

Is there a boolean literal in SQLite?

I know about the boolean column type, but is there a boolean literal in SQLite? In other languages, this might …

sqlite boolean literals
Literal notation for Dictionary in C#?

I currently have a WebSocket between JavaScript and a server programmed in C#. In JavaScript, I can pass data easily …

c# dictionary literals
How do I do a literal *int64 in Go?

I have a struct type with a *int64 field. type SomeType struct { SomeField *int64 } At some point in my code, …

pointers go struct literals
How do I write a short literal in C++?

Very basic question: how do I write a short literal in C++? I know the following: 2 is an int 2U …

c++ literals
Literal Syntax For byte[] arrays using Hex notation..?

The compiler seems to be ok with this (single digit hex values only): byte[] rawbytes={0xa, 0x2, 0xf}; But not …

java arrays compiler-construction hex literals
Deprecated conversion from string literal to 'char*'

I have a program which declares an array of strings like this: char *colors[4] = {"red", "orange", "yellow", "blue"}; But I …

c++ string char deprecated literals
How to make eclipse "File Search" to also search inside source jars containing some text?

I am working on a (Java) project in which I have many jars which have a source-jar file attached. Is …

eclipse jar literals file-search
What's the C++ suffix for long double literals?

In C++ (and C), a floating point literal without suffix defaults to double, while the suffix f implies a float. …

c++ c literals floating-point-precision
How does one escape characters in Delphi string

Delphi strings use single quotes, for example 'a valid string'. How does one specify the ' character within a literal …

delphi string escaping literals
How do you declare a Char literal in Visual Basic .NET?

With Option Strict On: Dim theLetterA As Char = "A" returns an error about converting the string "A" to a Char. …

vb.net literals