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...

IDENTIFY TEST PROCESS SYMBOLS AND DIAGRAMS

Trades & Technology

A transmitter modulator circuit combines carrier and intelligence signals that are widely separated in _____________

A. frequency B. amplitude C. harmonics D. voltage

Trades & Technology

Arcing between brushes and the commutator is caused by armature reaction.

Answer the following statement true (T) or false (F)

Trades & Technology

The _____ system takes away the owner?s direct advisory relationship with the architect and engineer

A) traditional contract delivery B) design-build project delivery C) construction management delivery (CM) D) engineering-procurement-construction (E-P-C)

Trades & Technology