I ran this program and go this answer, #include #include void main() { int a=10,b=20,c=24,d=49; printf("%d ",~a); printf("%d ",~b); printf("%d ",~c); printf("%d",~d); } OUTPUT: -11 -21 -25 -50
Hi... I have learnt a lot from your videos.. . In this video I have a doubt... In the last of the video you gave an example of program using left shift, right shift and one's compliment... In that program how the value of one's compliment of c=10 is 11 ?
the answer for ones compliment , when we do by our self and as maam said it should become 5 but when we run it by machine it shows as 11,can any one clear it please.
When so many people are asking you doubts about the compliment, don't you think it is your duty to clear what error you've made in the video? Very disappointing!!!!
Excellent ! Your explanation is too good ma'am. It is so clear and easy to understand.
~10 is 5
10= 1010
~10= 0101 i.e 5
I ran this program and go this answer,
#include
#include
void main()
{
int a=10,b=20,c=24,d=49;
printf("%d
",~a);
printf("%d
",~b);
printf("%d
",~c);
printf("%d",~d);
}
OUTPUT:
-11
-21
-25
-50
perform 2s compliment for that answer then u will get the answer as what we solbed
Yup
But how bro??
Hi... I have learnt a lot from your videos.. .
In this video I have a doubt...
In the last of the video you gave an example of program using left shift, right shift and one's compliment... In that program how the value of one's compliment of c=10 is 11 ?
No it will be 5
@@ashakatariya07 how 5 explain
In bitwise negation, c=10 then ~c =5
But you wrote ~c=11 how??
Mam apka complement ka output 11 kese aya please explain i am confused mera 5 arha
This video has really add up to my binary systems
Excellent mam ❤️👍
Clear to understand and very easy process
the answer for ones compliment , when we do by our self and as maam said it should become 5 but when we run it by machine it shows as 11,can any one clear it please.
plz replyyyyy
~c answer is 5
There is something wrong about one's complement...🤔
Superb nd nice explanation mama🥰
In the last one's complement how ~c = 11 ones explain
Mam please explain bitwise masking
Answer is 5 at the end otherwise video was excellent.
Yes
no five is wrong answer is -11
when we do 2 s compliment then we get 5
In this video I have one doubt ~c value will come "5"
Nic teachings
Mam in one's compliment in program ans of it should be 5 na but u rote as 11 how
One's complement statement is wrong...
Basically it means add 1 to the the number you have taken....
For ex: ~12 = 12+1 = 13
Video is too good but in the last the one's compliment is 5 .
Tripti Jaiswal correct
The answer for the last one is 5 and not 11. Am I correct
Yup me too
Yes
@@arjunnatukula7128
Thanks for your time and effort.
yes 5 is the answer
It really useful to me
Thanks 😊 sis , 😍
C value is 5 not 11 is it correct
Miss, you are not returning a value. How the results are coming? Please work on that
I enjoyed the video but the ~c= 5.Thanks
#include
#include
void main()
{
int a=10,b=20,c=24,d=49;
printf("%d
",~a);
printf("%d
",~b);
printf("%d
",~c);
printf("%d",~d);
}
OUTPUT:
-11
-21
-25
-50
@@bharathgdpeace9369 why negative sign
In the last part of the video the sample programs result was wrong I think so I would be c= 5
What is one's complement explain with one example plz
Thank you
In left Shift ,How does I0I0 (4) became I0I00 (5)
It should be only 0I00 (4)
Hi, Left shift means double the value,
1010 is decimal 10,
10100 is decimal 20,
You can use online binary calculator for confirmation,TY:)
~c=5
I=32;
I =i>>3>>2 meaning
~5 is -6
How ~c has become 11 it's 5 no???
Yes ..
How it become 5 explain
5 is WRONG!!!!
#include
#include
void main()
{
int a=10,b=20,c=24,d=49;
printf("%d
",~a);
printf("%d
",~b);
printf("%d
",~c);
printf("%d",~d);
}
OUTPUT:
-11
-21
-25
-50
Once compliment answer is wrong input 10 is output is 5 not 11 answer
When so many people are asking you doubts about the compliment, don't you think it is your duty to clear what error you've made in the video? Very disappointing!!!!