Skip to content

Update numeric-boolean-and-pointer-literals-cpp.md #2998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/cpp/numeric-boolean-and-pointer-literals-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ ms.assetid: 17c09fc3-3ad7-47e2-8b48-ba8ae994edc8
---
# Numeric, boolean, and pointer literals

A literal is a program element that directly represents a value. This article covers literals of type integer, floating-point, boolean, and pointer. For information about string and character literals, see [String and Character Literals (C++)](../cpp/string-and-character-literals-cpp.md). You can also define your own literals based on any of these categories. For more information, see [User-defined literals (C++)](../cpp/user-defined-literals-cpp.md)
A literal is a program element that directly represents a value. This article covers literals of type integer, floating-point, boolean, and pointer. For information about string and character literals, see [String and Character Literals (C++)](../cpp/string-and-character-literals-cpp.md). You can also define your own literals based on any of these categories. For more information, see [User-defined literals (C++)](../cpp/user-defined-literals-cpp.md).

. You can use literals in many contexts, but most commonly to initialize named variables and to pass arguments to functions:
You can use literals in many contexts, but most commonly to initialize named variables and to pass arguments to functions:

```cpp
const int answer = 42; // integer literal
Expand Down