SlideShare a Scribd company logo
VARIABLES, CONSTANTS,
OPERATORS, EXPRESSIONS AND
STATEMENTS
By: John Paul Espino
De La Salle University – Dasmarinas
Facebook.com/Johnpaul.dss
Computer programming - variables constants operators expressions and statements
KEYWORDS
• Reserved words that have a special meaning.
• May not be redefined by the programmer.
32 KEYWORDS
• auto
• break
• case
• char
• const
• continue
• default
• do
• double
• else
• enum
• extern
• float
• for
• goto
• if
• int
• long
• register
• return
• short
• signed
• sizeof
• static
• struct
• switch
• typedef
• union
• unsigned
• void
• volatile
• while
LITERALS
• values that identifiers can hold.
• Numeric literals – accepts numeric values
• No comma
• No space between unary sign and the digits
• Must begin and end with a digit
• Non-numeric literals - may be a character or sequence of characters
• Example:
‘a’
‘+’
‘B’
“De La Salle University”
“BCS”
IDENTIFIERS
• are the names that are used to reference variables, function labels and various
user-defined objects.
RULES FOR NAMING VALID IDENTIFIERS
1. An identifier in Turbo C can vary from 1 to 32 characters.
2. The first letter must be a letter or an underscore (_), followed optionally by sequence of letters, digits
and/or underscore.
RULES FOR NAMING VALID IDENTIFIERS
3. Turbo C also allows the $ to be used in an identifier name, but this is non-standard so it’s use is not
recommended.
4. An identifier should not include embedded blanks.
5. You cannot use any of the Turbo C keyword as your variable or identifier name.
6. You should not call your variable by the same name as other functions.
EXERCISES
Identify the if the identifier is valid or invalid.
1. _
2. a$
3. Hello_World
4. _1
5. A
6. main
7. scanf
8. num1
9. tot sales
10. x-1
11. lname
12. Void
Invalid: 2,3,6,7,9,10
Valid: 1,4,5,8,11,12
integer1 45
integer2 72
sum 117
VARIABLES
• are identifiers in C where we want to store values (data).
Variables are important since they contain the values need for
manipulation and evaluation. Variable names are stored in the
computer’s memory.
TYPE BITWIDTH RANGE
char 8 0 to 255
int 16 -32768 to 32767
float 32 3.4E-32 to 3.4 E+38
double 64 1.7E-308 to 1.7 E+308
void 0 valueless
DATA TYPES
 type of data that a variable can hold
TYPE EXAMPLES
char ‘A’ ‘b’ ‘$’ ‘9’ ‘ab’‘10’
int 1 250 4500
float 3.5 42.56 345.6789
double 3.5647290… 486.145875...
void valueless
MORE ON DATA TYPES
TYPE MODIFIERS
 is used to alter the meaning of the base type to fit the needs of various situations more precisely.
 The four type modifiers in C are:
signed unsigned
long short
 Note:
 Type modifiers can be applied to char and int except long which can also be applied to double
TYPE BITWIDTH RANGE
long int 32 -2147483648 to 2147483647
short int 16 -32768 to 32767
signed 32 -2147483648 to 2147483647
long int
unsigned 32 0 to 4294967295
long int
SOME COMBINATIONS OF C’S BASIC
DATA TYPES AND MODIFIERS
DECLARATION OF VARIABLES
• All variables must be declared before they are used.
• Syntax:
type variable_list;
• where:
type is a valid data type
variable_list is 1 or more identifier names with comma separator
Local variables are variables that are declared inside a function.
They are also called automatic variables. Local variables can
only be referenced by statements that are inside the block in
which the variables are declared.
Example:
#include <stdio.h>
main ()
{
int a,b,c;
}
Function block
LOCAL VARIABLES
Example:
#include <stdio.h>
int a,b,c;
main ()
{
}
GLOBAL VARIABLES
• variables are known throughout the entire program and may be used by any
piece of code. Also, they will hold their values during the entire execution of the
program. Global variables are created by declaring them outside any function.
Example:
#include <stdio.h>
main ()
{
int a,b,c;
}
Example:
#include <stdio.h>
int a,b,c;
main ()
{
}
LOCAL
VARIABLES
GLOBAL
VARIABLES
Example:
#include <stdio.h>
main ()
{
}
test_function (int a, float b);
{
}
FORMAL PARAMETERS
• behave like local variables in a function. Their
declaration occurs inside parentheses that follow the
function name.
CONSTANTS
• Constants refer to fixed values that may not be
altered by the program.
• Turbo C supports one other type of constant in
addition to those of the pre-defined data types. This
is known as the string. All string constants are
enclosed in double quote (“”).
• Example: #define TEXT “Hello World”
•
DECLARATION OF CONSTANT
• are identifiers that can store a value that cannot be changed during program
execution.
const type iden_name = value;
where:
type is a valid data type
iden_name is a valid identifier
value is a constant value of the identifier
ASSIGNMENT STATEMENT
Recall the assignment statement in flowcharting
The general form of an assignment statement is
var_name = expression
where:
var_name should be a variable, not a function or
constant.
expression may be a single constant or a
complex combination of variables, operators and
constants.
Number = 5
Examples:
char ch = ‘a’;
int first = 0;
float num = 1.5;
type var_name = constant
You can give variables a value at the time they are declared
by placing an equal sign (=) and a constant after the variable
name. This is called initialization and it’s general form is:
semicolon
VARIABLE INITIALIZATION
• Global variables are initialized at the start of
the program
• Local variables are initialized each time the
block in which they are declared is entered
• All global and local variables are initialized to
zero (0) if no other initialization is specified.
REMINDERS IN INITIALIZATION
Variables of type const may not be changed
during execution of the program. Variables
of this type get value from initialization or by
some hardware-dependent means.
The modifier volatile is used to tell the
compiler that a variable’s value can be
changed in ways not explicitly specified by
the program.
ACCESS MODIFIERS
REVIEW EXERCISES
1. Variables of type ___________are used to hold
integer quantities.
2. Values of type character are used to hold
________characters or any 8-bit quantity.
3. __________in C are reserved words that have
special meaning.
4. Values of type ________ and ________ are used
to hold real numbers.
5. Real numbers have both an ________ and a
fractional component.
int
ASCII
Keywords
float double
integer
6. Identifiers are composed of ________, ________, and underscore.
7. Variables that are declared inside a function are called
______________.
8. _________ are identifiers that can store a value that cannot be
changed.
letters
digits
local variables
Constants
OPERATORS
• Symbol that tells the compiler to perform specific mathematical or logical manipulations.
• Classification
• arithmetic operators
• relational operators
• logical operators
A. ARITHMETIC OPERATORS
- subtraction, unary minus
+addition
*multiplication
/ division
% modulus division
-- decrement
++ incrementNote:
• When / is applied to an integer, any remainder is truncated
• % cannot be used on type float or double
B. RELATIONAL & LOGICAL OPERATORS
• Relational Operators shows the relationship values have with one another.
• Logical operators show the ways these relationships can be connected together using rules of formal
logic.
RELATIONAL OPERATORS
Operator Action
> greater than
>= greater than or equal to
< less than
<= less than or equal to
= = equal
!= not equal
C. LOGICAL OPERATORS
&& AND
|| OR
! NOT
EXPRESSION
• Is any valid combination of operators, constants and variables that evaluates to a value.
OPERATOR PRECEDENCE
 ()
 !, unary +, unary –
 *, /, %
 Binary +, binary –
 <, <=, >, >=
 ==, !=
 &&
 ||
highest
lowest
EVALUATE THE FOLLOWING:
1. Given: z = 5; a = 3, b = 9, w = 2, y = -5
Expression:
z – a * b / 2 + w * y
2. Given: a = 5, b = 2, y = 3, c = 4, x = 1
Expression:
(a * b + 2) * -y / ( c + x )
-18
7
3. Given: dei = 0; y = 4.0; z = 2.0; x = 3.0
Expression:
!dei || ( y + z >= x – z )
4. Given: x = 3; y = 2; j = 5; k = 3
Expression:
(x-y) <= (j-k ==3)
1
0

More Related Content

PPTX
proper storage
PPTX
Binary computing
PPTX
Lesson 3 using hand tools
PDF
T.L.E. SIM
DOCX
tle10_afa_horticulture_q2_mod1_producevegetablesgrowingseedlings_v3 (22 pages...
PDF
Consumer electronics-servicing-learning-module
DOCX
Sample Semi Detailed Lesson Plan in Digital Electronics - PCB Designing
PPTX
Detailed Lesson Plan Farm Tools.pptx
proper storage
Binary computing
Lesson 3 using hand tools
T.L.E. SIM
tle10_afa_horticulture_q2_mod1_producevegetablesgrowingseedlings_v3 (22 pages...
Consumer electronics-servicing-learning-module
Sample Semi Detailed Lesson Plan in Digital Electronics - PCB Designing
Detailed Lesson Plan Farm Tools.pptx

What's hot (20)

PPT
Farm tools quiz.ppt
PDF
TLE-AF Horticulture Curriculum Guide
PDF
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
PDF
Curriculum Guide ICT Grade 7-10.pdf
PDF
Basic CPU (Central Processing Unit)
PDF
Lesson 3 performing mensuration and calculation
PDF
K to 12 TLE Curriculum Guide for Computer Hardware Servicing
DOCX
action plan in TLE.docx
PDF
Input Data into Computer.pdf
PPTX
Parts of Keyboard
DOCX
Semi-Detailed Lesson Plan - Input and Output Devices of Computers
PPTX
Grade 7 TLE-AFA-Lesson 4 Crop Care and Maintenance, Post Harvesting- Quarter ...
PPT
Fundamental elements of computer
PDF
K-12 Module in TLE - ICT Grade 9 [All Gradings]
PPTX
PECs ppt.
PPTX
lesson plan on components of computer.
PDF
TLE-IA Consumer Electronics Servicing Curriculum Guide
PPTX
MELC IN EPP/TLE COMPLETE
PPTX
Structure of C program
Farm tools quiz.ppt
TLE-AF Horticulture Curriculum Guide
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
Curriculum Guide ICT Grade 7-10.pdf
Basic CPU (Central Processing Unit)
Lesson 3 performing mensuration and calculation
K to 12 TLE Curriculum Guide for Computer Hardware Servicing
action plan in TLE.docx
Input Data into Computer.pdf
Parts of Keyboard
Semi-Detailed Lesson Plan - Input and Output Devices of Computers
Grade 7 TLE-AFA-Lesson 4 Crop Care and Maintenance, Post Harvesting- Quarter ...
Fundamental elements of computer
K-12 Module in TLE - ICT Grade 9 [All Gradings]
PECs ppt.
lesson plan on components of computer.
TLE-IA Consumer Electronics Servicing Curriculum Guide
MELC IN EPP/TLE COMPLETE
Structure of C program
Ad

Similar to Computer programming - variables constants operators expressions and statements (20)

PPTX
PPTX
dinoC_ppt.pptx
PPTX
presentation_data_types_and_operators_1513499834_241350.pptx
PDF
C intro
PPT
Escape Sequences and Variables
PPT
Unit i intro-operators
PPTX
Module 1:Introduction
PPT
Introduction To C
PPTX
C tokens
PPT
Ch2 introduction to c
PPTX
presentation_c_basics_1589366177_381682.pptx
PPTX
Bsc cs i pic u-2 datatypes and variables in c language
PPTX
datatypes and variables in c language
PPTX
Btech i pic u-2 datatypes and variables in c language
PPTX
component of c language.pptx
PPT
Introduction to c
PPTX
Mca i pic u-2 datatypes and variables in c language
ODP
CProgrammingTutorial
PPTX
Basic of Structered Programming in C psd
PPTX
Diploma ii cfpc u-2 datatypes and variables in c language
dinoC_ppt.pptx
presentation_data_types_and_operators_1513499834_241350.pptx
C intro
Escape Sequences and Variables
Unit i intro-operators
Module 1:Introduction
Introduction To C
C tokens
Ch2 introduction to c
presentation_c_basics_1589366177_381682.pptx
Bsc cs i pic u-2 datatypes and variables in c language
datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
component of c language.pptx
Introduction to c
Mca i pic u-2 datatypes and variables in c language
CProgrammingTutorial
Basic of Structered Programming in C psd
Diploma ii cfpc u-2 datatypes and variables in c language
Ad

More from John Paul Espino (20)

PPTX
Religion Education - Sa kabataang Pilipino - A La Juventud Filipina
PPTX
Religion Education - Human Dignity - Freedom and Responsibility
PPTX
Public Speaking and Leadership -Process of Reading
PPTX
Environmental Engineering - Case Study - The Minamata Disease Disaster
PPTX
Computer Programming - if Statements & Relational Operators
PPTX
Philippine Constitution - Parliamentary Immunity
PPTX
Philippine Constitution - Article XI - Accountability of Public Officers
PPTX
Philippine Constitution - Article X - Local Government
PPTX
Philippine Constitution - Article VIII - Judicial Department
PPTX
Philippine Constitution - Article VII - Executive Department
PPTX
Philippine Constitution - Article VI - Legislative Power
PPTX
Philippine Constitution - ARTICLE IX - Constitutional Commissions
PPTX
Philosophy - the aesthetic attitude and the sublime
PPTX
Philosophy - the aestheic attidude and the sublime
PPTX
Information literacy - effects of social networking to students thesis presen...
PPTX
Fundamentals of Accounting - Posting & Trial Balance
PPTX
Fundamentals of accounting - manufacturing
PPTX
Fundamentals of accounting - cost value profit (cvp)
PPTX
Ethics - nicomachean ethics section 7 - 9
PPTX
Ethics - aristotle's ethics
Religion Education - Sa kabataang Pilipino - A La Juventud Filipina
Religion Education - Human Dignity - Freedom and Responsibility
Public Speaking and Leadership -Process of Reading
Environmental Engineering - Case Study - The Minamata Disease Disaster
Computer Programming - if Statements & Relational Operators
Philippine Constitution - Parliamentary Immunity
Philippine Constitution - Article XI - Accountability of Public Officers
Philippine Constitution - Article X - Local Government
Philippine Constitution - Article VIII - Judicial Department
Philippine Constitution - Article VII - Executive Department
Philippine Constitution - Article VI - Legislative Power
Philippine Constitution - ARTICLE IX - Constitutional Commissions
Philosophy - the aesthetic attitude and the sublime
Philosophy - the aestheic attidude and the sublime
Information literacy - effects of social networking to students thesis presen...
Fundamentals of Accounting - Posting & Trial Balance
Fundamentals of accounting - manufacturing
Fundamentals of accounting - cost value profit (cvp)
Ethics - nicomachean ethics section 7 - 9
Ethics - aristotle's ethics

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25 Week I
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
cuic standard and advanced reporting.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
“AI and Expert System Decision Support & Business Intelligence Systems”
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25 Week I
The AUB Centre for AI in Media Proposal.docx
cuic standard and advanced reporting.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
MIND Revenue Release Quarter 2 2025 Press Release
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Review of recent advances in non-invasive hemoglobin estimation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Computer programming - variables constants operators expressions and statements

  • 1. VARIABLES, CONSTANTS, OPERATORS, EXPRESSIONS AND STATEMENTS By: John Paul Espino De La Salle University – Dasmarinas Facebook.com/Johnpaul.dss
  • 3. KEYWORDS • Reserved words that have a special meaning. • May not be redefined by the programmer.
  • 4. 32 KEYWORDS • auto • break • case • char • const • continue • default • do • double • else • enum • extern • float • for • goto • if • int • long • register • return • short • signed • sizeof • static • struct • switch • typedef • union • unsigned • void • volatile • while
  • 5. LITERALS • values that identifiers can hold. • Numeric literals – accepts numeric values • No comma • No space between unary sign and the digits • Must begin and end with a digit
  • 6. • Non-numeric literals - may be a character or sequence of characters • Example: ‘a’ ‘+’ ‘B’ “De La Salle University” “BCS”
  • 7. IDENTIFIERS • are the names that are used to reference variables, function labels and various user-defined objects.
  • 8. RULES FOR NAMING VALID IDENTIFIERS 1. An identifier in Turbo C can vary from 1 to 32 characters. 2. The first letter must be a letter or an underscore (_), followed optionally by sequence of letters, digits and/or underscore.
  • 9. RULES FOR NAMING VALID IDENTIFIERS 3. Turbo C also allows the $ to be used in an identifier name, but this is non-standard so it’s use is not recommended. 4. An identifier should not include embedded blanks. 5. You cannot use any of the Turbo C keyword as your variable or identifier name. 6. You should not call your variable by the same name as other functions.
  • 10. EXERCISES Identify the if the identifier is valid or invalid. 1. _ 2. a$ 3. Hello_World 4. _1 5. A 6. main 7. scanf 8. num1 9. tot sales 10. x-1 11. lname 12. Void Invalid: 2,3,6,7,9,10 Valid: 1,4,5,8,11,12
  • 11. integer1 45 integer2 72 sum 117 VARIABLES • are identifiers in C where we want to store values (data). Variables are important since they contain the values need for manipulation and evaluation. Variable names are stored in the computer’s memory.
  • 12. TYPE BITWIDTH RANGE char 8 0 to 255 int 16 -32768 to 32767 float 32 3.4E-32 to 3.4 E+38 double 64 1.7E-308 to 1.7 E+308 void 0 valueless DATA TYPES  type of data that a variable can hold
  • 13. TYPE EXAMPLES char ‘A’ ‘b’ ‘$’ ‘9’ ‘ab’‘10’ int 1 250 4500 float 3.5 42.56 345.6789 double 3.5647290… 486.145875... void valueless MORE ON DATA TYPES
  • 14. TYPE MODIFIERS  is used to alter the meaning of the base type to fit the needs of various situations more precisely.  The four type modifiers in C are: signed unsigned long short  Note:  Type modifiers can be applied to char and int except long which can also be applied to double
  • 15. TYPE BITWIDTH RANGE long int 32 -2147483648 to 2147483647 short int 16 -32768 to 32767 signed 32 -2147483648 to 2147483647 long int unsigned 32 0 to 4294967295 long int SOME COMBINATIONS OF C’S BASIC DATA TYPES AND MODIFIERS
  • 16. DECLARATION OF VARIABLES • All variables must be declared before they are used. • Syntax: type variable_list; • where: type is a valid data type variable_list is 1 or more identifier names with comma separator
  • 17. Local variables are variables that are declared inside a function. They are also called automatic variables. Local variables can only be referenced by statements that are inside the block in which the variables are declared. Example: #include <stdio.h> main () { int a,b,c; } Function block LOCAL VARIABLES
  • 18. Example: #include <stdio.h> int a,b,c; main () { } GLOBAL VARIABLES • variables are known throughout the entire program and may be used by any piece of code. Also, they will hold their values during the entire execution of the program. Global variables are created by declaring them outside any function.
  • 19. Example: #include <stdio.h> main () { int a,b,c; } Example: #include <stdio.h> int a,b,c; main () { } LOCAL VARIABLES GLOBAL VARIABLES
  • 20. Example: #include <stdio.h> main () { } test_function (int a, float b); { } FORMAL PARAMETERS • behave like local variables in a function. Their declaration occurs inside parentheses that follow the function name.
  • 21. CONSTANTS • Constants refer to fixed values that may not be altered by the program. • Turbo C supports one other type of constant in addition to those of the pre-defined data types. This is known as the string. All string constants are enclosed in double quote (“”). • Example: #define TEXT “Hello World” •
  • 22. DECLARATION OF CONSTANT • are identifiers that can store a value that cannot be changed during program execution. const type iden_name = value; where: type is a valid data type iden_name is a valid identifier value is a constant value of the identifier
  • 23. ASSIGNMENT STATEMENT Recall the assignment statement in flowcharting The general form of an assignment statement is var_name = expression where: var_name should be a variable, not a function or constant. expression may be a single constant or a complex combination of variables, operators and constants. Number = 5
  • 24. Examples: char ch = ‘a’; int first = 0; float num = 1.5; type var_name = constant You can give variables a value at the time they are declared by placing an equal sign (=) and a constant after the variable name. This is called initialization and it’s general form is: semicolon VARIABLE INITIALIZATION
  • 25. • Global variables are initialized at the start of the program • Local variables are initialized each time the block in which they are declared is entered • All global and local variables are initialized to zero (0) if no other initialization is specified. REMINDERS IN INITIALIZATION
  • 26. Variables of type const may not be changed during execution of the program. Variables of this type get value from initialization or by some hardware-dependent means. The modifier volatile is used to tell the compiler that a variable’s value can be changed in ways not explicitly specified by the program. ACCESS MODIFIERS
  • 27. REVIEW EXERCISES 1. Variables of type ___________are used to hold integer quantities. 2. Values of type character are used to hold ________characters or any 8-bit quantity. 3. __________in C are reserved words that have special meaning. 4. Values of type ________ and ________ are used to hold real numbers. 5. Real numbers have both an ________ and a fractional component. int ASCII Keywords float double integer
  • 28. 6. Identifiers are composed of ________, ________, and underscore. 7. Variables that are declared inside a function are called ______________. 8. _________ are identifiers that can store a value that cannot be changed. letters digits local variables Constants
  • 29. OPERATORS • Symbol that tells the compiler to perform specific mathematical or logical manipulations. • Classification • arithmetic operators • relational operators • logical operators
  • 30. A. ARITHMETIC OPERATORS - subtraction, unary minus +addition *multiplication / division % modulus division -- decrement ++ incrementNote: • When / is applied to an integer, any remainder is truncated • % cannot be used on type float or double
  • 31. B. RELATIONAL & LOGICAL OPERATORS • Relational Operators shows the relationship values have with one another. • Logical operators show the ways these relationships can be connected together using rules of formal logic.
  • 32. RELATIONAL OPERATORS Operator Action > greater than >= greater than or equal to < less than <= less than or equal to = = equal != not equal
  • 33. C. LOGICAL OPERATORS && AND || OR ! NOT
  • 34. EXPRESSION • Is any valid combination of operators, constants and variables that evaluates to a value.
  • 35. OPERATOR PRECEDENCE  ()  !, unary +, unary –  *, /, %  Binary +, binary –  <, <=, >, >=  ==, !=  &&  || highest lowest
  • 36. EVALUATE THE FOLLOWING: 1. Given: z = 5; a = 3, b = 9, w = 2, y = -5 Expression: z – a * b / 2 + w * y 2. Given: a = 5, b = 2, y = 3, c = 4, x = 1 Expression: (a * b + 2) * -y / ( c + x ) -18 7
  • 37. 3. Given: dei = 0; y = 4.0; z = 2.0; x = 3.0 Expression: !dei || ( y + z >= x – z ) 4. Given: x = 3; y = 2; j = 5; k = 3 Expression: (x-y) <= (j-k ==3) 1 0