Categories
Variables and Keywords

Datatype cannot be changed

Once we define a variable with some datatype then we cannot change the datatype of that variable.

For example,

// int variable
int marks = 10;

float marks;    // error

Leave a Reply

Your email address will not be published. Required fields are marked *