Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
CPP Examples
700+ articles
C++ Quiz
140+ articles
CPP-Basics
90+ articles
cpp-pointer
93 articles
misc-cpp
35 articles
cpp-references
17 articles
const keyword
7 articles
C++-const keyword
11 posts
Popular Articles
Recent Articles
Type Qualifiers in C++
Last Updated: 07 June 2024
In C++, type qualifiers are keywords that modify the properties of data types, influencing how variables, pointers, or references can be use
...read more
CPP-Basics
C++
C++-const keyword
C++ Programs
Picked
CPP Examples
misc-cpp
How to use const with Pointers in C++?
Last Updated: 16 May 2024
In C++, the const keyword is used as a type qualifier for defining read-only (immutable) objects that cannot be modified anywhere in their l
...read more
cpp-pointer
C++
C++-const keyword
C++ Programs
Picked
CPP Examples
Const keyword in C++
Last Updated: 06 August 2024
In this article, the various functions of the const keyword which is found in C++ are discussed. Whenever const keyword is attached with any
...read more
Technical Scripter
CPP-Basics
C++
C++-const keyword
Similar Topics
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
CPP Examples
700+ articles
C++ Quiz
140+ articles
CPP-Basics
90+ articles
cpp-pointer
93+ articles
misc-cpp
35+ articles
cpp-references
17+ articles
const keyword
7+ articles
Const vs Regular iterators in C++ with examples
Last Updated: 18 August 2020
Prerequisite: Iterators in STLIterators are objects similar to pointers which are used to iterate over a sequence and manipulate the contain
...read more
C++
C++-const keyword
Difference Between
cpp-iterator
C++ Programs
Different ways to use Const with Reference to a Pointer in C++
Last Updated: 04 April 2020
Before moving forward with using const with Reference to a Pointers, let us first see what they are one by one: Pointers are used to stor
...read more
cpp-references
cpp-pointer
C++
C++-const keyword
Advanced Pointer
C++ Programs
How to modify a const variable in C?
Last Updated: 30 July 2024
Whenever we use const qualifier with variable name, it becomes a read-only variable and get stored in .rodata segment. Any attempt to modify
...read more
C Language
C-Pointers
C++-const keyword
C++ | const keyword | Question 5
Last Updated: 28 June 2021
Output of C++ program?[sourcecode language="C"]#include iostreamint const s=9;int main(){ std::cout s; return 0;}[/sourcecode]Contrib
...read more
C Language
C++ Quiz
C++-const keyword
const keyword
C++ | const keyword | Question 5
Last Updated: 28 June 2021
[sourcecode language="C"]#include stdio.hint main(){ const int x; x = 10; printf(%d, x); return 0;}[/sourcecode](A) Compiler Error(B
...read more
C Language
C++ Quiz
C++-const keyword
const keyword
C++ | const keyword | Question 3
Last Updated: 28 June 2021
Predict the output of following program.[sourcecode language="C"]#include iostreamusing namespace std;class Point{ int x, y;public: Point
...read more
C Language
C++ Quiz
C++-const keyword
const keyword
C++ | const keyword | Question 2
Last Updated: 28 June 2021
In C++, const qualifier can be applied to1) Member functions of a class2) Function arguments3) To a class data member which is declared as s
...read more
C Language
C++ Quiz
C++-const keyword
const keyword
C++ | const keyword | Question 1
Last Updated: 28 June 2021
Predict the output of following program[sourcecode language="CPP"]#include iostreamusing namespace std;int main(){ const char* p = 12345;
...read more
C Language
C++ Quiz
C++-const keyword
const keyword
1
1
1
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !