Please enable JavaScript.
Coggle requires JavaScript to display documents.
3.0 Fundamentals Of Programming Language, Identifier
Allows us to name…
-
Identifier
- Allows us to name variables, constants, functions and objects in a program.
- Identifier name allow us to symbolically deal with the memory locations so that we don’t have to deal directly with these addresses.
Constants
- Constant refer to fixed values that have a data type.
- values cannot be modified after their definition.
2. Types of constant
a. Defined constants (#define)
b. Declared constants (const)
Variable
- Variables are named memory locations that have types
- A symbol or name that stands for a value.
- There are 2 types of variable :
a. Global (variable declared in the main body of the source code, outside all functions)
b. Local (one declared within the body of a function or a block.)
Reserved Words
- A word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use".
- Keywords are also called reserved words because they are words that are reserved by the language.
-
What is data?
In computing, data is information that has been translated into a form that is more convenient to move or process.
They go into the computer as input and are processed to produce output.
Data Types
- Numeric
- Non-numeric
Numeric
- Support all of the algebraic functions.
- Include all types of numbers.
- The subtypes of numerical data include integers and real numbers.
integers
-whole number such as 5927/-37,can be "+" and "-"
real numbers/floating
-whole number with decimal parts,eg:89.365
Non- Numeric
- There is no numeric value and that cannot be assigned into a numeric type
- Include Character, String and Logical.
- Character- all single digit numbers,letters,special character Eg:a,A,2,#,&
- String - more than 1 character put together,Eg:name,number IC
- Logical- consists of 2 pieces of data:TRUE/FALSE
-
-
-