Computer Science, asked by Sudin, 1 year ago

how to write variable description for a program in ICSE Computer Applications

Answers

Answered by Vaanika
68
e.g. for a program to find factorial

hope it helps .......
Attachments:

Sudin: Thanks for your help dear
Vaanika: ur wlcm
Answered by hotelcalifornia
26

To write variable description for a program in ICSE Computer Applications:

  • Variable name
  • Variable type
  • Variable purpose

Explanation:

A variable in C language must be given a sort, which characterises what kind of information the variable will hold.  

Char: Can hold/store a character in it.

int: Used to hold a number.

float: Used to hold a floating point esteem.

double: Used to hold a twofold worth.

Void: Hold zero

Standards to name a Variable, Variable name must not begin with a digit.

A variable name can comprise of letters in order, digits and exceptional images like (underscore _).

Clear or spaces are not permitted in factor name.

Watchwords are not permitted as factor name.

Upper and lower case names are treated as various, as C is case-delicate, so it is proposed to keep the variable names in lower case.

Similar questions