





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to programming concepts, focusing on bitwise manipulation and assignment operators. It covers the use of '&', '|', '^', '&=', '|=', and '^=' operators for bitwise operations, as well as the assignment operators '+=', '-=', '*=', '/=', and '%='. The document also discusses data types, including whole numbers, real numbers, and character data, and their respective sizes. Students will find this document useful for understanding the basics of programming and manipulating data using bitwise operators.
Typology: Slides
1 / 45
This page cannot be seen from the preview
Don't miss anything!






































Introduction to Programming
Lecture 22 Review
Bit wise Manipulation and Assignment Operator
Bit Manipulation Operators
&= Bitwise AND Assignment Operator |= Bitwise OR Assignment Operator ^= Bitwise Exclusive OR Assignment Operator
Assignment Operator
a &= b ; Same as a = a & b ;
Assignment Operator
a ^= b ; Same as a = a ^ b ;
Design Recipes Analyze a problem statement, typically expressed as a word problem Express its essence, abstractly and with examples Formulate statements and comments in a precise language Evaluate and revise the activities in the light of checks and tests. PAY ATTENTION TO DETAIL Docsity.com
Symbolic Names
x i BasicPay HouseRent
Data types
Whole numbers:
Arrays Collection of same data types
Modulus Operator
a % b ; 7 % 2 = 1 ; 100 % 20 = 0 ;
Compound Arithmetic Operators
+= -= *= /= %=
Comparison Operators
a < b ; a <= b ; a == b ; a >= b ; a > b ; Docsity.com