This video is great, all i had to do was listen to an explanation, then look at the code, then bam, i understood and made my own in seconds, thanks for this great video, keep it up :).
this is exactly what i thought to solve this problwm but did not know about how to use an array properly. i knew that i need something that can store values
Sir I tried initializing the array as int bin[ ] = { } . instead of displaying the output as 101 it displayed me 100 . what is the reason , could you please help me in figuring out it
Both are same ..used to specify the entry point of the program...and void represents that the code will not return anything...it is Said to use int main() instead of void main()...for good practice..Mostly int main () is used
because the binary you read from the bottom to the top. that is why you need to ' - - = -1 '. for example, 10%2 = (0), 5%2 = (1) and 2%2 = (0), 1%2 = (1) ==> 0101. but you need to read from the bottom to the top is: 1010. that is why you need to -1 in the loop.
i tested it, but not working. so, it is better you do it practically.thank you.the other thing is your explanation is very nice. below is your code: int main(){ int b[100],d,j; printf("enter d:"); scanf("%d",&d); i=0; while(d>0){ b[i] = d%2; d = d/2; i++; } for(j = i-1;j >= 0;j--) printf("%d",d[J]); }
Sir, Many of our fnds are following your c programming videos for placments those are very useful and super We are requesting you to post a complete tutorial on java pls sir it could a great step from you to help us!!!!!
hi venky i will try to upload them thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Sure sir Already all of our friends are following your videos We have completed all the c language part Eagerly waiting for java videos and concepts Thank you sir
hi shamanth thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
thank you very much bro, I have been searching since 2 days for the perfect explanation , you are really a life saver bro
This video is great, all i had to do was listen to an explanation, then look at the code, then bam, i understood and made my own in seconds, thanks for this great video, keep it up :).
The way of Ur explanation is just fantastic...very clear..perfect👌
Already we have while loop and we have the values of B[I]
Thanks sir, I wanted to learn these concepts. From other resources, it was tough to understand, but your video helped me out!!
Konch Mike vadandi bayya. Alago anthakastapadi videomaking chesthunaru. Alage konchem voice kuda clarity ga. Manchiga unte 100% results vasthay. Explaination matram superb. Chala baga cheparu
this is exactly what i thought to solve this problwm but did not know about how to use an array properly. i knew that i need something that can store values
the dry run was excellent man!!!!!!
I have no doubt on conversion of number after seeing this video.
Tq sm❤️
Sir I tried initializing the array as int bin[ ] = { } . instead of displaying the output as 101 it displayed me 100 . what is the reason , could you please help me in figuring out it
impressiv how u can explain and solve at the same time, i can barely solve the problem on an IDE.
good explanation sir
This program does not run perfectly
His algorithm is inefficient, i think this is just for beginners
Why are we using B[100]?
Tq sir well explanation.....
thanks for great explain
i really appreciate that
sir, it very useful your explanation is so good
hereafter make a video quality clearly
hi meena
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Ur methods of explaning Very effective sir!! Its affected in one time ..thq sir!!💐
Best brother
Thanks so very much! This has saved my life,you cannot imagine,hope you're still doing a great work,love from Haiti!
sir ,why are u writing B[100]??
You are great
what is that firsrt u initailazed array of 100
Really super..... Binary to decimal?
Nice and very helpful sir.
Thanks for you sir
why array used here??
This program working very perfectly
Sir meeru kekaa
very easy logic...thnks
Super
Thank you sir
Sir I want floating point decimal number into binary can you please explain please sir
I love the logics you apply in making a program
Very nice explanation 👍
Thanks bro
excellent explanation sir
I don't understand j=i-1
Sir why did u used for loop in this
Your logic is very simple and easy to understand...,..
Thanku
Nice explanation
nice
Sir
What is the difference between main and void main
Both are same ..used to specify the entry point of the program...and void represents that the code will not return anything...it is Said to use int main() instead of void main()...for good practice..Mostly int main
() is used
in the second for loop why we are useing ( j = i-1 )
???
because the binary you read from the bottom to the top. that is why you need to ' - - = -1 '. for example, 10%2 = (0), 5%2 = (1) and 2%2 = (0), 1%2 = (1) ==> 0101. but you need to read from the bottom to the top is: 1010. that is why you need to -1 in the loop.
Excellent sir
i tested it, but not working. so, it is better you do it practically.thank you.the other thing is your explanation is very nice. below is your code:
int main(){
int b[100],d,j;
printf("enter d:");
scanf("%d",&d);
i=0;
while(d>0){
b[i] = d%2;
d = d/2;
i++;
}
for(j = i-1;j >= 0;j--)
printf("%d",d[J]);
}
Hi
May I know what is the error you are getting
Hi @Life Information Technology
I can see from your code you have not declared variable i,
Declare variable 'i' program will work fine.
Thank you so much
Wow nice soln of decimal to binary thanku sir😊😊😊😊😊
5 is not a decimal number it is a integer. 5.0 is decimal
Thank you very much sir
Awesome sir❤️
Instead of n = n/2 , we can do right shift to make it half quicker.
For printing?
the binary number is showing in vertical not in horizontal pls help sir
hi gopi
thats completely depends on how you are displaying
instead of
use \t
or send your program to askme.selflearning@gmail.com
Sir,
Many of our fnds are following your c programming videos for placments those are very useful and super
We are requesting you to post a complete tutorial on java pls sir it could a great step from you to help us!!!!!
hi venky
i will try to upload them
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Sure sir
Already all of our friends are following your videos
We have completed all the c language part
Eagerly waiting for java videos and concepts
Thank you sir
Works perfectly! Thank you sir.
Sir why dint we used variable as reaminder instead of array.?
Could not run it
Nice 1 sir..
hi shamanth
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
Super ra teach panringa🙏
👍👍👍👍
instead of using b[i] we can take remainder means how it works
After binary ....how to convert into 2's complement....
Sir,please tell me the program of array of decimal numbers to binary
nice explanation sir...
hi Tarun
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Simple and osm explanation 😎
Thank you sir ,your programming c best
helped !
Thank you sir aap bahut good programming padate HP
❤️❤️👏
sir i think this program is wrong bcz binary equivalent of 5 is 0101 but how it could it be 1010 ?
yeah sir igot it our program is converting 10 to binary, thank you
Not all heroes wear capes... Many thanks!! (:
Sir nice explanation sir
Heart full thanks to u
Thank you sir...u just explained in simple way which we can understand easily ..
Thank u sir. It helped me alot.
defining the array size will be problematic in this way
You are awasome sir.
Excellent sir..
thankkkkkkkkk you so much sir
Super explanation sir.
It was helpful😊
hi anna:)
sir please do more concepts and program in c
Nyc
Good sir
not getting output sir
only 0 appears
s boss there is no output appers only 0
i give 5 then answer is 3261232 like this
Right sir not getting output
post your program here so that i will try to help you.
same here , not getting output
Good
Ap hindi ma hi parah lya Karn..
super sir
thx a lot
Can anyone tell me a 11000000(2) is?
192
Thank you sir....
Thank You sir
thank u good sir