Bitwise One's Complement Operator In C ( Full Lecture In Hindi ) By Nirbhay Kaushik
HTML-код
- Опубликовано: 9 окт 2024
- ------------------------- #Bitwise_One_complement -------------------------
Jai_Hind, Dosto, aaj ki is video me , maine aapko btaya hai..ki bitwise one's complement operators aakhir kya hote hai.. aur inhe hum kaise use krte hai...aasha karta hun aapko ye video pasand aaegi... agar video pasand aae to please LIke Aur share kar dena.. agar channel par nae ho to SUBSCRIBE kar dena.....
THANK YOU !
--------------------------------------------------------
Please Subscribe For More Videos !
------------------------------------------------------
Instagram : / kaushiknirbhay
------------------------------------------------------
Facebook : / techfully
-----------------------------------------------------
Thank You !
Thanks for your explanation👍👍👍
Fantastic explanation Bhai...❣️
Excellent explanation
Superr
Hallo,,kisi negative value ka kaise conversion kaise krenge
thanks, i thought that it was 2's complement
thank you
Confuse in minus bit like 128 minus 64 minus 32 minus 16 minus etc
Can you explain ~6 number ??
Your logic not work on 6 number or other many numbers
How to convert in binary form ?
checkout my previous video in playlist.
bin()
Bhai 128 minus q huaa and 64 plus q huaaa deep confused
sbse last main 1 jo tha.. wo 128 par tha.. aur last wala 1 negative sign so krta hai.. isliye -128. Baki jiske bhi niche 1 hai wo plus wale hai.. is liye +64
If -. Minus 5 or minus 45 ho tb
if the input value was -5 or -45 then:-
we take an example where we store -5 in a variable-
#include
int main()
{
int a=-5;
printf("%d",~a);
return 0;
}
if we run the above program then it's showing 4 as output...
how it's work internally?
let's understand...
always remember "Negative values are stored 2's complemented form"
suppose we use 8 bit
1)binary of value 5 is 0000 0101(8-bit form)
2)apply 2's complement
i)apply 1's complement
0000 0101(binary of 5)
1111 1010 (1's com.)
ii) add 1 1's complement
1111 1010
+1
---------
1111 1011
---------
3)again we have to convert this digit(111 1011) in 1's complement form
0000 0100
now you can convert it in a decimal form which is 4 and the same as it is you can calculate with -45.
-(n+1)
Maarula class m the?
kon bola ..
@@TechFully main bhi vhi padhta tha
Dekha h maine
baise jeevan ki sabse bdi galti thi wo....🤣🤣 maine pehli baar us level ki pagalpanti kisi teacher main dekhi thi..
@@TechFully sahi kha 😂
Abhi kha ho?MCA ho gya?