Computer Science, asked by jsjjsjsjajkakgga, 1 year ago

classify constant in C and give one example of each​

Answers

Answered by niranjan8070
2

Answer:

C Constants are also like normal variables. But, only difference is, their values can not be modified by the program once they are defined.

Constants refer to fixed values. They are also called as literals

Constants may be belonging to any of the data type.

Syntax:

const data_type variable_name; (or) const data_type *variable_name;

Explanation:

const float number = 3.14; /*Real constant*/

Answered by Anonymous
1

Character constant :- const char value='a';

integer constant :- const int value= 1;

float constant :- const float value = 1.1;

double constant:- const double value =1.1111;

Similar questions