Provide at least three rules that should be followed when naming variables in C.

What will be an ideal response?


Identifiers are names given to variables and functions. Using meaningful identifiers greatly enhances the style of a program. There are only a few rules to remember:

- The first character must be a letter or an underscore (the _ character).
- After the first character, you can use letters, underscores, or digits.
- Variable names can be limited to 31 characters,and some compilers require the first 8 characters of variable names to be unique.
- Uppercase and lowercase characters are distinct.

Trades & Technology

You might also like to view...

Consequent pole motors have the ability to change speed by changing the number of ____________________.

Fill in the blank(s) with the appropriate word(s).

Trades & Technology

Technician A says that HEV refrigerant service uses the same RRR machine as any other vehicle. Technician B says that a hybrid-specific RRR machine is used to service HEV systems. Which technician is correct?

A) Technician A only B) Technician B only C) Both technicians D) Neither technician

Trades & Technology

Why is planned maintenance often performed during the off-season?

A) Most equipment fails during the off season. B) You can usually perform the maintenance without having to shut off the system. C) There are more daylight hours for working. D) For more efficient use of service labor hours

Trades & Technology

AISI prefixes include:

A) D B) E C) C D) All of the above

Trades & Technology