Dear Friends and VU students this thread discussion, I have created for weekly lecture from now to Friday. We all discuss the problems of C++ (Introduction to Programming) from Lecture 20 to 25.
Remember when you are asking some question please also mansion the lecture number.
So, I request to all participate in this discussion.
As you know that 20th July, 2013, Our Final Exam will be started.
So, We have very short time...
I hope you all understand.
Regards
Ali Raza Marchal
BSCS[Hons] 2nd Semester
Tags:
Final Term exams will start on 20 July . So Please Focus on Lectures and Participate in Lecture Wise Discussions and Assignments , GDB, Quiz Discussions and Clear ur concepts Thanks and Regards.
Mr Al Raza Marchal U take start 1st by puttin up any question then we'll knew hw we proceed!!!
bit manipulation, the number is written in hexadecimal form.we put 0x or 0X before the number to write a number in hexadecimal...
The Exclusive OR operator ( ^ ) can be used to encrypt and decrypt the password.
Raid abbr is redundant array of independent disks way of storing data in different and multiple hard disk...
in handouts its Inexpensive
bt which i'd read b4 was independent*
redundant array of inexpensive devices both are same independent i think old name.... but not 100% sure
for more information downlaod this book
http://www.csie.fju.edu.tw/~yeh/research/papers/os-reading-list/pat...
WHAT IS SWAPPING?
Swap means to exchange. Therefore in C/C++ swapping of variables simply means exchanging the value of one variable with another variable.
HOW TO SWAP_ Four Method of Swapping
METHOD 1:
USING THREE VARIABLES
METHOD 2:
USING TWO VARIABLES AND ADDITION/SUBTRACTION OPERATION
METHOD 3:
USING TWO VARIABLES AND MULTIPLICATION/DIVISION OPERATION
METHOD 4:
USING TWO VARIABLES AND XOR OPERATION
USING TWO VARIABLES AND XOR OPERATION
This method may appear quite complicated to you. But if you have some knowledge of XOR (binary operation) then you will find that it is very simple. If you do not have any idea about XOR operation then I will recommend you to refer a book on C or C++ programming and read about bitwise operators in it or search in google. You can also read about Boolean Algebra.
Let a there are three variables A, B, and C. If C stores the XOR of A and B
i.e. C=A XOR B then
if you XOR A to C you will get B and,
if you XOR B to C you will get A.
See how…
If C = A XOR B then
C XOR A = (A XOR B) XOR A = B or simply C XOR A = B
And, C XOR B = (A XOR B) XOR B = A or simply C XOR B = A
Let us understand it using numeric values
If A=5, B=10 therefore C=A XOR B = 15 (use windows calculator to calculate)
then C XOR A = 15 XOR 5 = 10 (use windows calculator to calculate)
and C XOR B = 15 XOR 10 = 5
How to Get This Badge at Your Profile DP
------------------------------------
Management: Admins ::: Moderators
© 2021 Created by + M.Tariq Malik. Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents & non-commercial site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. All Contents on site are for personal & non-commercial use.We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post