C++ Identifiers | Learn Coding
HTML-код
- Опубликовано: 16 сен 2024
- C++ full course 👇
• C++ Full Course (Hindi...
c++ programs using classes 👇
• Playlist
Don't forget to tag our Channel...!
#identifiers
#datatypes
#variables
#CppProgramming
#LearnCoding
Content:-
--‐---‐-------------
Writer ✍️:- Ankush
Editing ✂️:- Ankush
Voice 🔊:- Akhilesh
---‐-------------------------
Thank You 😊
-----‐-----------------------
Bitwise operators work on bits and perform bit by bit operation. In computations such as addition, subtraction, multiplication, division etc. the values are converted into binaries. Those operations are performed on bit level. Bit-level processing is used to increase speed and to save power. Some examples of Bitwise operators are as follows. The & represents bitwise AND. The | represents bitwise OR. The ^ represents bitwise exclusive OR. The ~ is the complement. The > symbol represents the right shift.
Bitwise AND operation is as follows. When x and y are operands, and x has value 0, and y has value 0, then bitwise AND is 0. When x is 0 and y is 1, then the bitwise AND is 0. If x is 1 and y is 0, then the bitwise AND is 0. When both x and y have 1, the bitwise AND is 1. The output will be 1 only if both operands contain the value 1. Assume 20 and 25 as two values. The binary of 20 is 10100. The binary of 25 is 11001. Bitwise AND of these two numbers is 10000. When performing bit by bit AND operation, the value one only comes when both operands contain one.
Bitwise OR operation is as follows. When x and y are operands, and x has value 0 and y has value 0, then bitwise OR is 0. When x is 0 and y is 1, then the output is 1. When x is 1 and y is 0, the output is 1. When both x and y have value 1, the output is 1. From two operands, if either one operand is 1, then the Bitwise OR is 1. Assume 20 and 25 as two values. The binary of 20 is 10100. The binary of 25 is 11001. Bitwise OR of the 20 and 25 is 11101.
Bitwise XOR operator will give 1 if both values are different. When x and y operands are zeros, then the Bitwise XOR is 0. When x is 0 and y is 1, the output is 1. When x is 1 and y is 0, then the output is 1. When both x and y are 1, then the output is 0. The Bitwise XOR of 20 and 25 is 01101. The ~ symbol is to take the complement of the value. The binary value of 20 is 10100. The complement is ~20 = 01011. It is to convert ones to zeros and to convert the zeros to ones.
The 1, 0101 >> 1 is 0010.
Bohat Achi tarah se Sanjaya❤I am very happy
Thank u sir kal ka mara paper h pap ka aap n ya video shi dali y🙏🏼🙏🏼
Kaha ka Hy bhai
Your Videos are very helpful for me Sir.....
Thank you🙏
😊
Sir one question... yaha pe end l lganae pr next line me ata he vo to theek he pr... ye function ko second time call kiya tab bhi second or third output me tgird output new line me kyo aya... confusion ho rha he ..
Sir please make a complete playlist video of data base management system. 🥺
Hn sir please
Data types ke aage likha hui this mean identifier
Thank you sir 💞💞
Sir help cha hia tha .....🙏
Please upload videos on applied methamethics
Please sir
Thank you so much sir
Sir we want digital principle full notes
Mene javascript sikhi he mujhe dsa bhi sikhna he mujhe kya java bhi sikhna padega kya
Sir Android ke video kb se banaoge
Sir c language videos upload in English you explain in English sir please
Sir tcs me interview ki age ketni hoti hai
Please sir aap Android bhi pdha dijiye