Write a Program in C++ That Using a Properly Initialized Constant Variable

// Using a properly initialized constant variable.
#include <iostream>
using namespace std;

int main()
{
   const int x = 7; // initialized constant variable

   cout << "The value of constant variable x is: " << x << endl;
} // end main

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...