Identifiers

An identifier is a name assigned to a particular variable, function, procedure, or user-defined item. It labels a specific memory location where data is stored or actions are carried out.

The Flowgorithm Identifiers are the names used to identify variables, functions, etc., in the flowchart. There are some rules for naming the identifiers.

  • Identifiers can have letters and numbers. However, identifiers must start with a letter followed by a sequence of letters and numbers.
  • Identifiers cannot be predefined names or reserved words. This will confuse the flowchart interpreter.

Valid Identifier Names:green tick

Some valid identifiers are shown below:

  • name
  • age
  • digit
  • StudentName
  • Year2016

Invalid Identifier Names:red cross mark

Some invalid identifier names in the Flowgorithm are shown below:

  • boolean ( reserved word in Flowgorithm, name of data type )
  • 9digit ( starts with a number )
  • person_name ( contains special character underscore. This may be valid in some programming languages )
  • sqrt ( name of a built-in function name sqrt() )