Rules for constructing variable names are same for all the data types. Related Read: Rules for Constructing int, float, char…