Tag Archives: const keyword

Run-time Constant: These are the constants whose respective values can only be known or computed at the time of running of source code. Run time… Read More
Prerequisite : C Constants and Strings Q.1 What is the output of this program? filter_none edit close play_arrow link brightness_4 code #include<iostream> using namespace std;… Read More
Output of C++ program? filter_none edit close play_arrow link brightness_4 code #include <iostream> int const s=9; int main() {     std::cout << s;     return 0; }… Read More
filter_none edit close play_arrow link brightness_4 code #include <stdio.h> int main() {    const int x;    x = 10;    printf("%d", x);    return 0; } chevron_right filter_none… Read More
Predict the output of following program. filter_none edit close play_arrow link brightness_4 code #include <iostream> using namespace std; class Point {     int x, y; public:… Read More
In C++, const qualifier can be applied to 1) Member functions of a class 2) Function arguments 3) To a class data member which is… Read More
Predict the output of following program filter_none edit close play_arrow link brightness_4 code #include <iostream> using namespace std; int main() {     const char* p =… Read More