Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

constant variable in c++ example

#include <iostream>
using namespace std;
 
// Driver Code
int main()
{
 
    // const int x;  CTE error
    // x = 9;   CTE error
    const int y = 10;
    cout << y;
 
    return 0;
}
 
PREVIOUS NEXT
Tagged: #constant #variable
ADD COMMENT
Topic
Name
9+9 =