Variables
Variables
Ans:
A Variable is defined as the name which is assigned to the value in a C PROGRAM.
Variable names are associated with some memory locations or (storage area) and the
data stored in different types and is declared at the beginning of the main
function.
Each variable in C has a specific type, which regulates the size and layout of the
variable's memory which is the range of values that can be stored inside that
memory and the set of operations that can be applied to the variable.
There are some rules that are followed while naming a variable:
Register Variable:
These kind of variables are stored in the CPU register instead of a conventional
storage place like RAM(random access memory).
At a broad level, it's scope is local and exists till the end of a block or a
function.
For e.g.,
register data_type variable_name= initial_name;
Ans:
The term "Operators" is defined as the operations which are used in performing some
specific type of operations that are used to assign the function between two
operands.
(simple definition)
2. Pre-decrement Operator:
This operator comes before the variable, the value stored in the variable is first
decremented and then, assigned.
for e.g., int main()
{
int x= 10, y= 20;
int p= --x, --y;
printf("%d\n", x);
printf("%d\n", y);
return 0;
Post-decrement Operator:
This operator comes after the variable, the value stored in the variable is first
assigned, and then decremented.
for e.g., int main()
{
int x= x--, y--;
printf("%d\n", x);
printf("%d\n", y);
return 0;
}
int b= 30;
int "b-a";
Multiplication This operation performs the operation to multiply two operands "*"
For e.g.,
int a= 10;
int b= 20;
int "a*b";
Division This operation performs to divide two operands "/"
For e.g.,
int a= 10;
int b= 20;
int "b/a";
Modulus This operation performs the modulus function between two operands "%"
For e.g.,
int a= 10;
int b= 20;
int "a%b";
RELATIONAL OPERATORS: The "relational operators" checks operand is not equal to the
right operand.
satisfied when one of the two operands becomes true then,
LESS THAN This operation is performed when the left operand is less than the
right operand!
for e.g., int a= 10;
int b 40;
int "a<b"
"<"
The term "Heuristic Evaluation" is defined as the usability engineering method for
finding the problems in a user-interface design.
This technique enables the user to access the decisions that has already been made
by himself only. It also provides the ease of finding the errors which is done by a
small set of evaluators independently examine the interface which in turn, saves
time for the user.
Heuristic evaluation, developed by Jakob Nielsen, is a method for structuring the
critique of the system for continuing the designing process. This technique
encourages the user to make himself the owner of the assisted work,
which comes out to be true as everything about the design is in the hands of the
user.
Thus, heuristic evaluation is a set of general principles which are followed by the
evaluator.
Following are its features:
Expert-analysis: Heuristic evaluation comes under the category of expert analysis
as the principles are taken in control by the expert only which makes him able to
evaluate freely without any disturbance/error in the design process.
The evaluator decides the design earlier as to prevent the situation of regretting
later.
(as not choosing the right design in the beginning)
However, the founder of the method, "Nielsen's" ten heuristics helps the user to
perform the tasks more efficiently.
Iterative process:
Cost-effective:
Problem detective, not solution generation: