Blog Introductions

In this  blog contains tutorials about  HTML Tutorials, Python Tutorials, CSS Tutorials, How to, PHP Tutorials, Java Tutorials, C++ Tutorials, Tutorials,  Examples, Source code,Learning,

Tips and Software development  services. C++ Constants variable   - C++ Tutorials Bestitworriors



C++ Constants variable 



C++ Tutorials



C++ Constants variable   - C++ Tutorials Bestitworriors - Variable are use to store data and information in it.After assigning value to variables we can update it or change it but in constants variable use to constant value which is read only data value which can't be changed.





Some Key Points of C++ Constants Variables


  1. Variable use to store the data or values
  2. Variable values can be varry or changeable
  3. Constant variable have read only property
  4. Once value is store in constant variable we can't assing another value to same variable it will give an error


Code



#include <iostream>
using namespace std;

int main() {

const int minutes = 60;
const float PI = 3.14;

cout<<endl;

cout<<minutes;

cout<<endl;

cout<<PI;

cout<<endl;
return 0;
}






OutPut


60
3.14

I hope You really enjoyed this blog . I try my best to make every thing is easy and helpfull to provide to public .You will get more blog about the Programing project and code . Thanks for visiting my blog if you have any querry related to this you can comment here i will try my best to response you back about C++ Constants variable   - C++ Tutorials Bestitworriors