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?

Related Questions

What is literal in c language?

a string constant


What is the purpose of literals in assembly language?

literals are used to store constant values which are not changed even after program execution


What are the kinds of hih-level language?

C,c++,java


What is example of literative?

Examples of literals are: 1 3.14159 'c' "Hello world"


What are the BASIC language unit?

In BASIC programming, the basic language units include keywords, variables, literals, operators, and expressions. Keywords are reserved words that have special meaning, such as PRINT or INPUT. Variables are used to store data, while literals represent fixed values, like numbers or strings. Operators perform operations on variables and literals, and expressions combine these elements to produce a value.


What is the difference between literals and variables in QBasic?

Literals are constants.


What delimiter are use to specify the beginning and end of literal in c?

In C programming, string literals are specified using double quotes ("). For example, "Hello, World!" is a string literal that starts and ends with double quotes. Character literals, on the other hand, are specified using single quotes ('), such as 'A' for a character literal.


What is programing in c?

C++ is a programming language which gives the user the chance to create working applications through creating source code.


How many tokens are present in C?

There are 6 types of Tokens in C which are as follows:- 1. Keyword 2. Identifier 3. Constants/Literals 4. Variable 5. Operator 6. Punctuator


Why c language has name c why not a?

C-language was derived from B-language.


What is previous language of c language?

language before c language is pascal


What is C language what does it do?

C Language is First Step of Programming Language, Help for C Language you are show the correct answer