Computer Science, asked by joyriddhi9900, 9 months ago

Write a c++ program to create an unchangeable variable with the coast keyboard

Answers

Answered by rajtanu0
16

Answer:

#include<iostream.h>

#include<conio.h>

void main()

clrscr();

{ //To create an unchangeable variable using const keyword, here the initialization of a value to the variable is necessary during declaration because it remains a constant throughout the program further.

const int m = 5;

//The datatype could have been anything with the appropriate keyword and syntax

cout<<m;

getch();

}

Hope this helps you !

Similar questions