answersLogoWhite

0

Literals are either numeric types (integers and floating point types), or character types.

int i = 42; // literal integer

double pi = 3.14; // literal floating point

char c = 'x'; // literal character

char s[] = "Hello world"; // literal string

Note that you cannot take the address of a literal since there's no way to refer to it.

User Avatar

Wiki User

9y ago

What else can I help you with?