Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "^L" mean in C?

Tags:

c

For example, main in src/hello.c in the GNU Hello package ends like this:

   exit (EXIT_SUCCESS);  }  ^L 
like image 781
Sean Letendre Avatar asked Mar 17 '19 04:03

Sean Letendre


People also ask

What does UL mean in C?

Unsigned constants are written with a terminal u or U , and the suffix ul or UL indicates unsigned long . Floating-point constants contain a decimal point ( 123.4 ) or an exponent ( 1e-2 ) or both; their type is double , unless suffixed.

What is a literal constant in C?

Advertisements. Constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal.

What are literals give 2 examples?

The values assigned to each constant variable are referred to as the literals. Generally, both terms, constants, and literals are used interchangeably. For example, “const int = 5;“, is a constant expression and the value 5 is referred to as a constant integer literal.

What is literals in C Plus Plus?

C++ Literals. Literals are data used for representing fixed values. They can be used directly in the code. For example: 1 , 2.5 , 'c' etc. Here, 1 , 2.5 and 'c' are literals.

What is the use of the prefix L in C++?

L is a prefix used for wide strings. Each character uses several bytes (depending on the size of wchar_t). The encoding used is independent from this prefix.

What does L mean in a Unicode string?

Similar to 1L being a long value. It means it's an array of wide characters (wchar_t) instead of narrow characters (char). It's a just a string of a different kind of character, not necessarily a Unicode string. L is a prefix used for wide strings. Each character uses several bytes (depending on the size of wchar_t).

What does L mean in wchar_t?

It means it's an array of wide characters ( wchar_t) instead of narrow characters ( char ). It's a just a string of a different kind of character, not necessarily a Unicode string. L is a prefix used for wide strings. Each character uses several bytes (depending on the size of wchar_t ).

What number is L in Roman numerals?

The letter L in Roman numerals is equivalent to the number 50. The number 50, represented by the symbol L, is one of the seven letters that are combined (if necessary) and used to create the final number. For reference, these seven letters are:


1 Answers

Literally, it's a page break ("form feed") character. The compiler treats it as ordinary whitespace. But it's very useful for printing source code - it starts a new page (for example, use ^L between functions to force each call to get its own page).

In Vim/vi based editors, you can insert such a character within edit mode by typing Ctrl + V followed by Ctrl + L. It will look like ^L in the editor, but it's actually just one character (ASCII value: 12 or 0x0C).

like image 133
selbie Avatar answered Sep 25 '22 05:09

selbie