Programming Fundamentals for Software Engineering
Programming Fundamentals for Software Engineering
Programming Fundamentals
4.00 Credit Hours
Undergraduate Program
SESSION 1, 2
Week 2
© www.uskt.edu.pk
Learning C++
• Learning C++
• Character Set
• Constants
• Variables
++
• Keywords
Character Set
• Learning C++
• Character Set
• Constants
• Variables
• Keywords
Constants
• Learning C++
•An entity that doesn’t change
• Character Set
• Constants
• Variables
• Keywords
Constants
Integer Constants
• Learning C++
• Learning C++
• An entity that may vary during program
• Character Set execution
• Constants • Names given to locations in memory
• Variables
• Learning C++
• Series of characters (letters, digits,
• Character Set underscores)
• Constants
• Must begin with a letter or underscore
• Variables
• Learning C++
• No commas or blanks are allowed within
• Character Set a variable name.
• Constants
• No Special symbol are used in name.
• Variables
• Learning C++
Every variable has
• Character Set
• Constants • Name
• Type
• Variables
• Size
• Keywords • Value
• Address
Variable declaration
• Any variable used in the program must
• Learning C++
be declared first before using it.
• Character Set
• Constants
• Variables
• Keywords
Variables
Assignment Operator
• Learning C++
• Variables
• Keywords