Bitwise Not Operator in C language

  Рет қаралды 297,525

MySirG.com

MySirG.com

Күн бұрын

Пікірлер: 259
@himansupanigrahi4489
@himansupanigrahi4489 6 жыл бұрын
This is the ultimate source to learn programming in C. I have read many books. I feel that anybody can understand easily watching this video. There cannot be anything better than this. Great job sirg
@priyankagarg3805
@priyankagarg3805 4 жыл бұрын
Ya...u r ryt
@_mafia_gaming2087
@_mafia_gaming2087 2 жыл бұрын
Love u sir❤❤
@Tejas-b7i
@Tejas-b7i Жыл бұрын
@muhammadshehbaz3149
@muhammadshehbaz3149 5 жыл бұрын
nice explanation sir g simple trick to find out the ~12 is just add 1 in 12 as 12+1=13 then add negative sign before it as -13
@randomsips
@randomsips 3 жыл бұрын
Thanks
@tameshrai6967
@tameshrai6967 Жыл бұрын
aaj tak ka sabse acha coding ka channel lga yeh mujhe maine AAJ tak jitne bhi dekhe hai unsab se kyuki sir aap bahut detail mein padhate ho i really love the way you teach sir thank you so much i gonna see the whole playlist of programming c on this channel
@shashankvashishtha4454
@shashankvashishtha4454 4 жыл бұрын
Finally got the concept of bitwise NOT ~ . very very thank you sir.
@mahipalsingh-yo4jt
@mahipalsingh-yo4jt 4 жыл бұрын
no matter what other channel you watch. This channel is the Greatest Of All Times for C language.........:]
@shivamkaushik2661
@shivamkaushik2661 6 жыл бұрын
Guru ji aagya samjh mai kasam se kal raat ko aache se samjh nhi aaya tha par upun ne haar nhi maani vo aaj mai steve jobs kai baare mai sunaa or mai excited hua or bss lgg gyaa to guruji sayad mikte h kbhii...
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 11 ай бұрын
congratulatulation👍👍👍👍
@ravimungse
@ravimungse Жыл бұрын
I got confused how 110 came 11:02 can anyone explain? Sir said 101 me 1 add krke dekho toh 110 aaya but kaise , maine kuch miss Krdiya kya😢
@ItzPrajwal4444
@ItzPrajwal4444 Жыл бұрын
omg..what an explaination ..awesome sir you nailed it.
@mysirgdotcom
@mysirgdotcom Жыл бұрын
Glad you liked it
@chandanamahajan8981
@chandanamahajan8981 5 жыл бұрын
Sir u are a genius.. u have uploaded all videos ,concepts for free. Thanks a lot. Salute to ur work. 😊
@deepshikhamishra9216
@deepshikhamishra9216 7 жыл бұрын
The way you explained is just AWSM .......THANK YOU SIR
@roastedguruji6158
@roastedguruji6158 3 жыл бұрын
True
@roastedguruji6158
@roastedguruji6158 3 жыл бұрын
What is your branch
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 11 ай бұрын
achha ji. fir mujhe samjh do ki ye +1 kaise add kar rahe hain
@sayandeepsoren6554
@sayandeepsoren6554 2 жыл бұрын
Easy explanation but in-depth also, doubt cleared , Thanks Sir
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 11 ай бұрын
mujhe toh samjh hi nahi aaaya yrr
@sayandeepsoren6554
@sayandeepsoren6554 10 ай бұрын
@@AnujkumarVerma-wo5vz skip kr do, utna kam nehi ayega, haa exam ma aa sakta ha...Bitwise operator k lia thoda Number System k bareme pata hona chahiye Baki C programming sikhna ha to Neso Academy youtube channel se sikh lo, Programming ka basic clear ho jayega, jo ki har programming language ma same ha
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 10 ай бұрын
@@sayandeepsoren6554 kya iss channel se programing ka basics clear nahi ho sakta , aisa kyun ?
@rohananand8253
@rohananand8253 3 жыл бұрын
Sir I have practiced this bitwise not operator and I have learned that how to do and the formula sir when you explained this video a little bit difficult but in last I you have cleared all the doubts of this video thank you sir for teaching in a very simple way thank you sir.. ❤❤❤💛💚🧡💙💜💝💞
@aryancrj5172
@aryancrj5172 4 жыл бұрын
binary no. me convert krne ka aasan tarika "play store me calc bin "converter aap download kre le jisse bhut easy hoga samjhne me bitwise operator😊😊
@sujeetmishra5037
@sujeetmishra5037 5 жыл бұрын
Thanks alot Sir 99%adopt ho gya Sir ji 🙏🙏✌✌
@sirnoxy2534
@sirnoxy2534 2 жыл бұрын
After the way you explained this whole topic it's like a piece of cake for me. Your teaching skills are on the top shelf. 💜
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 11 ай бұрын
mujhe nahi samjh aya yrr ki ye +1 kar kaise rahe hain
@amitshaw8788
@amitshaw8788 5 жыл бұрын
Best teacher ever for c programming
@sparshgarg8362
@sparshgarg8362 5 жыл бұрын
Thank you, sir! 8:21
@PrakashYadav-ur8or
@PrakashYadav-ur8or 5 жыл бұрын
Your lectures is very useful for me sir, I want to practice more question but from where
@meghachowdhury2088
@meghachowdhury2088 6 жыл бұрын
Ur videos are really helpful.Please make a video on c related aptitude ..Please sir.Thank you.
@AbhishekYadav-ze3wg
@AbhishekYadav-ze3wg 5 жыл бұрын
Bitwise is complex. But practice makes its easy.
@motivatedindia-thelion2816
@motivatedindia-thelion2816 4 жыл бұрын
Best sirG .I am 12th appearing student . But your videos , I can understand. I am also visited your website. Shiv Pratap.
@ayushraj1224
@ayushraj1224 4 жыл бұрын
Finally my concept is clear. Bhut time lga but, Thanks....
@cyberguide_in
@cyberguide_in 8 жыл бұрын
Good explanation :) Thank you, Sir.
@tofanbehera273
@tofanbehera273 7 жыл бұрын
sir your tutorial is the best tutorial from other,
@vikrammondal5811
@vikrammondal5811 7 жыл бұрын
Thank you sir for the video, it cleared my doubt
@vikrammondal5811
@vikrammondal5811 7 жыл бұрын
tu kya kar rha hai iss video ka?
@arpitbansal1791
@arpitbansal1791 7 жыл бұрын
~5=-6 ~6=-7 ~7=-8 ~8=-9 and so on
@ravikant1359
@ravikant1359 6 жыл бұрын
Arpit Bansal can you give me binary for 10000000000
@mavibrathi2345
@mavibrathi2345 6 жыл бұрын
1001010100000010111110010000000000
@sonakshichoudhary
@sonakshichoudhary Жыл бұрын
Thanku so much sir 🙏 Your video lectures are really awesome and very helpful 👍
@sikendrasrivastava5891
@sikendrasrivastava5891 6 жыл бұрын
thanks a lot sir for such a good vedio.
@gururajsingh6122
@gururajsingh6122 4 жыл бұрын
Spelling shi likhle pehle
@rahuljaiswal4381
@rahuljaiswal4381 7 жыл бұрын
Saurabh sir 1's compliment me 1 kis tarike se add karna hai wo samajh nahi aata ~ wala binary clear kare
@whiteobama3029
@whiteobama3029 3 жыл бұрын
ummid h 4 sal bad abto aap professional coder ban chuke hoge
@umargul5644
@umargul5644 3 жыл бұрын
Great job sir,for all your videos
@prlag7112
@prlag7112 7 жыл бұрын
how does 101 +1 becomes 110
@marcmc_9831
@marcmc_9831 6 жыл бұрын
prl Ag same query
@shivamkrgupta8928
@shivamkrgupta8928 5 жыл бұрын
@@marcmc_9831 for this u should know the knowledge of binary add...
@nargeesansari6337
@nargeesansari6337 5 жыл бұрын
@@shivamkrgupta8928 yes
@harneetkaur2934
@harneetkaur2934 5 жыл бұрын
Binary main agar hum 1+1 karte hai to vo 10 hota hai
@EzyCode
@EzyCode 5 жыл бұрын
Binary addition ka rules 1 + 1 = 0 carry 1 1 + 0 = 1 0 + 1 = 1 0 + 0 = 0
@Shubham_1999.
@Shubham_1999. 6 жыл бұрын
Plz koi samjhaiye Two's compliment 2'5?????????? Plz
@aayushjhalani5510
@aayushjhalani5510 2 жыл бұрын
Sir kya aap btaa skte hai C language ka basic konse lecture tk hai muje only basic krna hai
@armaan6the018
@armaan6the018 3 жыл бұрын
Thank you so much sir👌👌😊
@aonegamer7716
@aonegamer7716 7 жыл бұрын
~ operator is a unary operator and bitwise operator too then is it have higher priority than arithmatic operators???
@muhammadzamanshah5763
@muhammadzamanshah5763 8 жыл бұрын
sir how it is possible in reverse it should be come 5 not 6 because original no is 5 not 6.
@krishnadeovishwakarma7979
@krishnadeovishwakarma7979 5 жыл бұрын
Sir 101+1=110 kaise ho gya?
@architaverma8730
@architaverma8730 7 жыл бұрын
very good explanation thank you sir
@rahul2542
@rahul2542 6 жыл бұрын
sir,ager pahle koi number binary me diya ho to kaise pahchanege ki vo negative yaa positive ?
@ayushshrivastava8382
@ayushshrivastava8382 7 жыл бұрын
sir ,is output changes from compiler to compiler? because i have turbo, n my output is 3.
@invisibleknowledge4999
@invisibleknowledge4999 Жыл бұрын
Great great great Job sir
@VIPERSSHOW
@VIPERSSHOW 6 жыл бұрын
14:00
@AjeetKumar-lw2uf
@AjeetKumar-lw2uf 6 жыл бұрын
Nice video sir you are doing great work :::)))
@dancewithmj3079
@dancewithmj3079 7 жыл бұрын
too good sir.... thankyou so much.
@abhishekgupta545
@abhishekgupta545 4 жыл бұрын
trick ~8 = -9 add 1 and then change sign
@deepde8003
@deepde8003 3 жыл бұрын
Please improve the video quality Saurabh sir. Atleast 720 pixels. I like watching your videos. Pranam
@ElecGyaniBaba
@ElecGyaniBaba 4 жыл бұрын
sir can save in mind memory when x value is 12 so 12+1=13 so now need is this is plus or minus then convert first left binary digit and see this is minus or plus
@mahendragaikwad8749
@mahendragaikwad8749 8 жыл бұрын
fully confused in memory allocation in 16 bit,32 bit,64 bit operating system
@techtubedost9902
@techtubedost9902 8 жыл бұрын
sir how you know the binary no. of 12 is 00000000000000000000000000001100 and how you know 2'S IS -13
@abhinavkumarosho
@abhinavkumarosho 6 жыл бұрын
Dear, u should have knowledge about binary system. Actually in this system every 1 represents 2 and position of 2 from right represents power on 2 after that add each of them together. Here: 1100=2*2*2+2*2+0*0+0=12. Hope u understand.
@ArvindTechSolution
@ArvindTechSolution 5 жыл бұрын
Bro 1100 12. me ydi 1 add karoge to according to binary 1101 13 aayega
@HarpreetSingh-nl1li
@HarpreetSingh-nl1li 7 жыл бұрын
sir we enter 2 than answer is -3 but if we type -2 than answer is 1 so why our answer is not 3
@tarunsrivastava8490
@tarunsrivastava8490 6 жыл бұрын
Sir input out put ke question o level ke level ke vedio provide krva dijiye exam se phle
@b.tech_boys2129
@b.tech_boys2129 6 жыл бұрын
Sir please upload the program use bitwise oprator
@abhishekkr8077
@abhishekkr8077 5 жыл бұрын
Plz. explain about 101+1=110?
@anujmishra9286
@anujmishra9286 2 жыл бұрын
Sir thank you so much 🙏🙏🙏🙏🙏I love you sir💖💖💖
@aloksinghnarvariya1536
@aloksinghnarvariya1536 6 жыл бұрын
Sir don't understand how binary with MSB 1 is negative. As binary of 82 is 1010010
@ntjfjeke83838
@ntjfjeke83838 6 жыл бұрын
1 is not the MSB of 1010010 as in 16 bit it will be stored as 0000 0000 0101 0010 so MSB is 0 also in 32 bits there will be 0 in MSB.
@aarzoo660
@aarzoo660 2 жыл бұрын
Thank u sir, u r one and only one
@Sahilsharma-xs4mv
@Sahilsharma-xs4mv 7 жыл бұрын
What is 2's
@abhishekjain3949
@abhishekjain3949 4 жыл бұрын
*Sir aap kaha tak padhe ho?*
@SumitChilvante
@SumitChilvante 4 жыл бұрын
sir agar ~~255 aisa hoga to kya krna padega?, and what is ~255
@premmalviya51
@premmalviya51 3 жыл бұрын
I don't understand the meaning of 1's and 2's
@priyasharma9520
@priyasharma9520 5 жыл бұрын
Sir can u plz explain below code Unsigned char X = 0; Unsigned char y = -1; Unsigned char result = 0; result = +X; Printf(" value of X is %hhu ", X); result = ~y; Printf(" value of y is %hhu ", y); result = +X || ~y Printf(" value of result is %hhu ", result); Output is : value of X is 0 value of y is 0 value of result is 1 When I am assigning value separately to result, output is 0 but same values with OR gate is resulting as 1. How is this working ?
@aryantshrirang4051
@aryantshrirang4051 4 жыл бұрын
Thank you sir ji
@hotaru6765
@hotaru6765 7 жыл бұрын
superb sirji!
@chiragparmar3071
@chiragparmar3071 8 жыл бұрын
codeBlocks jisme int ki value 4 aati hai thanks to guide...sir
@kapilsingh2816
@kapilsingh2816 4 жыл бұрын
Sir do u mean ~5=-6
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 11 ай бұрын
i am also confuse yrr
@suryanshraj3246
@suryanshraj3246 7 жыл бұрын
Sir can you please guide about conversion of decimals to binary
@mysirgdotcom
@mysirgdotcom 7 жыл бұрын
visit www.mysirg.com and see computer fundamental videos.
@amangupta6938
@amangupta6938 7 жыл бұрын
sir as u tell in ur bitwise NOT operator lecture that in any binary representation if the no. have 1 in MSD then that no. is negative but the binary of 9 is 1001 but this is a positive no. and MSD is 1 also
@ntjfjeke83838
@ntjfjeke83838 6 жыл бұрын
No, you are only considering the last four binary digits, 9 is stored as 0000 0000 0000 1001 in 16 bits so MSB is 0 not 1.
@mkhussain3099
@mkhussain3099 3 жыл бұрын
Simply ~x=-(x+1),x is a positive integer
@priyanshuverma991
@priyanshuverma991 4 жыл бұрын
Great work 👌👌
@code-to-learn
@code-to-learn 2 жыл бұрын
A lot of thanks Sir!
@vsh155
@vsh155 6 жыл бұрын
Awesome🤘🤙🤘👍✌️👌🤘👌👌
@manasparey1278
@manasparey1278 4 жыл бұрын
Watching your videos kills my depression 😀
@manavmohata1240
@manavmohata1240 5 жыл бұрын
Can we generalise that to find not bitwise operator of any number we have to add 1 and change its sign? For example for a its -(a+1)
@simransingh5137
@simransingh5137 8 жыл бұрын
sir isko programming me use kyu krty hain
@StoicShogun
@StoicShogun 7 жыл бұрын
Sir apne 5 ke samne zeroes ke baad 101 kyu liya
@krunalkp1032
@krunalkp1032 7 жыл бұрын
my respected sir aapne bahut achha samjaya ... bas ye *msb* (most significante byte) ka concept kyu hai or kaise hai ye samjado plz
@marcmc_9831
@marcmc_9831 6 жыл бұрын
Ab tak toh sab samaj raha tha , par is video ne bohot confuse kar diya. Frustrate ho gaya hu. Binary no. mein sirf 1 or 0 hote hai ,to iska 2' kaise ayega , kya keh rahe hai sir . Plz help karo mujhe rona aa raha hai. Bohot complex hai , 101 mein 1 ad karne se 110 kaise aya????
@ntjfjeke83838
@ntjfjeke83838 6 жыл бұрын
2's compelment is a method to store negative binary number. Binary number ka addition decimal ke jaise nhi hota hai, it has certain rules. 1+1=0 but 1 gets carry to the left binary number. Isliye 101+1 me right wala 1+1 to 0 ho gya lekin uska 1 carry ho gya left wale means middle wale me to vo 1 ho gya or sabse left wala to 1 tha hi. Also, in binary addition 1+0=0, 0+1=0, 1+1=0(1 gets carry to left)
@vedangkavathiya8426
@vedangkavathiya8426 5 жыл бұрын
@@ntjfjeke83838 thanks bro
@eexe21
@eexe21 7 жыл бұрын
sir isme & kyo nai lagye x k sath
@manishmaurya5034
@manishmaurya5034 4 жыл бұрын
You are genius
@vedantsharma6844
@vedantsharma6844 4 жыл бұрын
sir apne kuch ese terms use kiye jese ki 2;s compliment ye beginners ya non-cs branchers ko samaj nahi aya.......rest the video is great thnkyou
@apnihorrorduniya
@apnihorrorduniya 7 жыл бұрын
amazing sir.
@vaibhavmali6295
@vaibhavmali6295 2 жыл бұрын
Big fan sir 😊😊😉
@sarveshsharma3555
@sarveshsharma3555 7 жыл бұрын
sir i dont understad how to say that 5's binary is -5's one complements? please sir explain it.
@BMEFaisal_khan
@BMEFaisal_khan 4 жыл бұрын
Sir when we add ➕1 in 1's compliment then it become 2's compliment but my question is after adding +1 in 1's compliment then all 0 Becomes 1 but what will happen in 1 that already in 1's compliment
@calisthenics-
@calisthenics- 3 жыл бұрын
When we take 1's complement of a no then all 0's got changed to 1's and 1's got to 0's and then add 1 to that result by binary addition rules you will find your answer correctly
@debaratighatak2211
@debaratighatak2211 4 жыл бұрын
Thanks a lot sir😊
@mahendragaikwad8749
@mahendragaikwad8749 8 жыл бұрын
In bitwise not operator how floating point number is converted into binary according to 16 bit artitucture I mean to say that how 4 bytes convert into binary in 16 bit artitucture
@mahendragaikwad8749
@mahendragaikwad8749 8 жыл бұрын
where are library files in c
@mohityadav-ts4tp
@mohityadav-ts4tp 8 жыл бұрын
Sir I have problem in adding 1 to 1's compliment explain in easy way
@sudheerbabu3050
@sudheerbabu3050 2 жыл бұрын
Sir, Kindly use a writing pad or stylus.
@deepakgidwani9003
@deepakgidwani9003 7 жыл бұрын
Kaafi books m Bitwise operator hi nahi diya gaya h..Is it neccesary to read it ?
@rockstarsharraf445
@rockstarsharraf445 4 жыл бұрын
Sir jab aapne 101 me + 1 kiya to 110 kaise ho gaya jabki 1100 me +1 kiya to 1101 aaya joki samajh me aata hai . Please explain sir .
@neelimathakur2802
@neelimathakur2802 4 жыл бұрын
if we write int x;x=~-13; so the output is 12. so what is the process of it??
@AnujkumarVerma-wo5vz
@AnujkumarVerma-wo5vz 11 ай бұрын
i am also too confuse yrr. if your doubt has been clear then please help me
@phoenixstranger
@phoenixstranger Жыл бұрын
So does it mean y= ~x = -(x+1) ?
@amolacharya5342
@amolacharya5342 7 жыл бұрын
Sir, there is a contradiction in what you have said. In your other video where you have taught 1's complement in binary number system you have said that the binary number must be subtracted by 1 in order to get 1's complement. But here you have not done so. Please explain.
@mysirgdotcom
@mysirgdotcom 7 жыл бұрын
please listen it again carefully
@mahendragaikwad8749
@mahendragaikwad8749 8 жыл бұрын
if 16 bit artitucture consume 4bytes of memory space for floatint point datatype how same bytes are consume by 32 bit artitucture
@dwipayanmondal3636
@dwipayanmondal3636 5 жыл бұрын
GOD OF PROGRAMMING💖💖💖Thank you soooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo much Sir😊
@mahendragaikwad8749
@mahendragaikwad8749 8 жыл бұрын
how to open header and library files
@deepanshuverma5132
@deepanshuverma5132 3 жыл бұрын
Sir aise to 4 ka binary 100 hota h or iska msb 1 h lekin 4to positive no. H aisa kyo sir plzz jarur bataiye
@utkarshbansal1312
@utkarshbansal1312 7 жыл бұрын
But sir in finding ~12 u had not done 2s component but u had only done 1s component @mysirg.com
@vanshikakatiyar3000
@vanshikakatiyar3000 6 жыл бұрын
sir agar mai unsigned int x=~1; to kya print k hoga sir
Lecture 5 Aritmetic Instruction in C  Part 5 hindi | MySirG.com
8:41
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
C bitwise operators 🔣
6:47
Bro Code
Рет қаралды 105 М.
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,9 МЛН
Nested if else in C language Hindi
16:28
MySirG.com
Рет қаралды 251 М.
C_18 Operators in C - Part 6 | Bitwise Operators |  C Programming Tutorials
15:21
Jenny's Lectures CS IT
Рет қаралды 466 М.
Bitwise Operators [Hindi]
21:24
Ganesh Shegar
Рет қаралды 89 М.
if else ladder in C language Hindi | MySirG.com
13:01
MySirG.com
Рет қаралды 184 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН