Constant in C++
Constants are refer to fixed values that do not change during the execution of a program.
Table of Contents
- Data science & data analyst
- Data Cleaning and Preprocessing in Data ScienceAdvanced Data Analysis Techniques: Unlocking Insights from DataData Visualization Techniques in Data ScienceDescriptive Statistics in Data SciData Science Tools and TechniquesScope of Data ScienceWhy learn Data Science? | Why Data Science?Impact of Data ScienceThe Importance of Data in Science | Introduction to Data ScienceWhat is Data Analysis | Data Analyst for Beginners
- Introduction of C++ || Definition of C++Brief history of C++ || history of C++Features of C++ || why we use C++ || concept of C++Concept of OOP || What is OOP || Object oriented programming languageDifference Between OOP And POP || Different Between C and C++Characteristics of C++Interesting fact about C++ || Top 10 interesting fact about C++C++ Program StructureWriting first program in C++ || how to write hello world in C++Basic Data Type And Variable In C++Identifier in C++Keywords in C++Token in C++Comment in C++Constant in C++Modifier in C++Taking User Input in C++ | User input in C++Input Output Operator In C++C++ Operators | Operator in programming languageHow to Add two number in C++Polymorphism in C++Compile Time Polymorphism in C++Function overloading in C++Operator Overloading in C++What are Control Structures in C++ || Understanding Control Structures in C++ | How to use if, else, switchWhat are Functions and Recursion in C++ | How to Defining and Calling FunctionsClass in C++Object in C++
- Why algorithm | The Importance of Algorithms in Modern Technology
- Which is better | BSc in Computer Science or BTech?
Like C/C++ support several kinds of literal constant. They include
integer, characters, floating point
number and strings. Literal constant do not have memory locations.
Example:-
123 //decimal integer
12.34 // floating point integer
0337 // octal integer
0X2 // hexadecimal integer
“C++” // string constant
‘A’ // character constant
L’ab’ // wide-character
constant
The wchar_t type is a
wide-character constant literal introduced by ANSI C++ and is intended for character
sets that cannot fit a character into a single byte. Wide-character literal
begin with litter L.
C++ also recognizes all the backslash character constants available in C
Data science & data analyst
- Data Cleaning and Preprocessing in Data Science
- Advanced Data Analysis Techniques: Unlocking Insights from Data
- Data Visualization Techniques in Data Science
- Descriptive Statistics in Data Sci
- Data Science Tools and Techniques
- Scope of Data Science
- Why learn Data Science? | Why Data Science?
- Impact of Data Science
- The Importance of Data in Science | Introduction to Data Science
- What is Data Analysis | Data Analyst for Beginners
C++
- Introduction of C++ || Definition of C++
- Brief history of C++ || history of C++
- Features of C++ || why we use C++ || concept of C++
- Concept of OOP || What is OOP || Object oriented programming language
- Difference Between OOP And POP || Different Between C and C++
- Characteristics of C++
- Interesting fact about C++ || Top 10 interesting fact about C++
- C++ Program Structure
- Writing first program in C++ || how to write hello world in C++
- Basic Data Type And Variable In C++
- Identifier in C++
- Keywords in C++
- Token in C++
- Comment in C++
- Constant in C++
- Modifier in C++
- Taking User Input in C++ | User input in C++
- Input Output Operator In C++
- C++ Operators | Operator in programming language
- How to Add two number in C++
- Polymorphism in C++
- Compile Time Polymorphism in C++
- Function overloading in C++
- Operator Overloading in C++
- What are Control Structures in C++ || Understanding Control Structures in C++ | How to use if, else, switch
- What are Functions and Recursion in C++ | How to Defining and Calling Functions
- Class in C++
- Object in C++
Algorithms
Technology
Tags
C plus plus