No video

C Program to Convert Decimal Number to Binary Number

  Рет қаралды 135,723

CodeWithHarry

CodeWithHarry

Күн бұрын

This program is to convert decimal to binary in C. After watching this video, you will be able to convert any decimal number to binary in C
►This video is a part of this C Programming Practice Programs Playlist: • C Language Practice Pr...
►Checkout my English channel here: / programmingwithharry
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithhar...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here

Пікірлер: 399
@eldrago3140
@eldrago3140 3 жыл бұрын
The binary form of 12 will be 1100. Is it correct?
@abhi8821
@abhi8821 2 жыл бұрын
S
@kashishchaurasiya1362
@kashishchaurasiya1362 Жыл бұрын
Yes it's i right
@medicolover9297
@medicolover9297 Жыл бұрын
Yes
@rdxprince8745
@rdxprince8745 Жыл бұрын
Ys bro
@narendrachavhan9716
@narendrachavhan9716 Жыл бұрын
No 0100
@munol2524
@munol2524 Жыл бұрын
Last semester, I made a program to convert from base 10 to base n, but I didn't know how to convert fractional numbers. I was inspired by your video title to create a program that can accept rational inputs like 32.47. I first sat down and figured out the algorithm to convert the given number's integer and fractional parts to binary on paper (using reminders and division for the integer part, and multiplication and subtraction for the fractional part). Then, I generalized it to base n and wrote the program in C.Since higher bases need more digits than 0-9, I used letters A-Z and a-z to represent higher bases. To handle negative values, the program will print "-" and then take the absolute value and proceed. Here is the program. Please feel free to read it and suggest improvements. I have tried to include extensive comments for the reader's convenience. #include #include char digit(int d1){//convert given number to it's corresponding digit if (d1 < 10) return(d1 + 48); //use digits [0 to 9] else if (d1
@darshan_the_admin
@darshan_the_admin 2 жыл бұрын
Thank you bhaiyaajaan..... Aapke har eak videos Jo Maine dekhe hai, sabse kuch sikhaa huu, aur aage bhi sikungaa
@Aryavart..
@Aryavart.. 4 жыл бұрын
9:45 --> here ✓ is used for division. 2✓12 = 0, 2✓6 = 0, 2✓3 = 1, 2✓1 = 1 Finally 12 ----> 1100.
@kunalkapse9307
@kunalkapse9307 2 жыл бұрын
Mera bhi aarhahe
@GauravSharma-vw1ns
@GauravSharma-vw1ns 2 жыл бұрын
@@kunalkapse9307 बधाई हो 😂
@StatusWorld-bp2pq
@StatusWorld-bp2pq 4 жыл бұрын
You are my best and favourite teacher in the world
@ronakmaniya2005
@ronakmaniya2005 16 күн бұрын
9.34 For decimal to binary 12 -> 1100
@alinamalhotra9895
@alinamalhotra9895 4 жыл бұрын
Perfectly syncing with my syllabus
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Great to hear!
@kajalgoswami9530
@kajalgoswami9530 3 жыл бұрын
Thankyou sir you teaches very well..now no confusion about this programme 😊
@codewithharryfanchannel559
@codewithharryfanchannel559 4 жыл бұрын
You deserve millions subscribers.
@krishnachaudhary5392
@krishnachaudhary5392 4 жыл бұрын
Sir i have almost complited the web development playlist.... But i have basic knolwde of php so can you please make a video on how to use php as a backend..... I felt php is easy for a beginner rather than node js...... So sirplease make a video on " Using PHP In backend....
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
Aaj hi ye digital electronics me pdhaya gya tha😂 Everytime u match 😁👍
@anshitshukla7498
@anshitshukla7498 4 жыл бұрын
Harry bhy Zindabad 🙏
@hdgamer452
@hdgamer452 4 жыл бұрын
Please make a playlist on Java Because in my book java is there but I can't understand Please make a playlist on java Please make a playlist on java Thanking you you and your work
@alltechsimplified2134
@alltechsimplified2134 3 жыл бұрын
go and learn with geeky shows
@snorlaxcodes
@snorlaxcodes 4 жыл бұрын
9:43 1100 in binary sir you are the best if you see this comment please reply and heart
@yashwanth8350
@yashwanth8350 2 жыл бұрын
16:45 int i=4; while(n) { rem = n%2; n=n/2 a[i]= rem i - - ; } Can we use this instead? Reply if u read this comment.
@darkangle9297
@darkangle9297 2 жыл бұрын
I am bangladeshi.i think your youtube channel is the best for coding
@adityagupta2850
@adityagupta2850 3 жыл бұрын
program isn't running for 0
@cristinarosales1423
@cristinarosales1423 3 жыл бұрын
Thanks for these amazing videos... Can you please make videos covering other conversions and other questions which are common in online tests for internships and jobs!!????? Waiting!!!
@subhajitghosh3867
@subhajitghosh3867 4 жыл бұрын
I am very beginner , everything I have leaned from u. I have written the java code for this question. package project1; import java.util.Scanner; public class DecToBin { public static void main(String[] args){ int[] arr = new int [10]; Scanner input = new Scanner(System.in); System.out.println("Enter your desire Number"); int n = input.nextInt(); int reminder; int i=0; while(n!=0){ reminder = n % 2; n = n/2; arr[i] = reminder; i++; } System.out.println("The Binary is"); for(int j=i-1;j>=0;j--) { System.out.print(arr[j]); } System.out.println(); } }
@t-w-s1307
@t-w-s1307 4 жыл бұрын
harry bhai thank you for this special trick. mene 12 ka binary sy decimal ki h. the answer is=(1100)
@asparshraj9016
@asparshraj9016 4 жыл бұрын
Bhaiya you are great and you upload informative videos...
@hiphopm7069
@hiphopm7069 4 жыл бұрын
2 comment sir aap suru se coading sikhaye na PLZZ sir mai siwan se hu PLZZ sir
@rhythmmotwani6710
@rhythmmotwani6710 2 жыл бұрын
9:40 12 in decimal =1100 in binary
@pythonenthusiast9292
@pythonenthusiast9292 4 жыл бұрын
Can you please do a live/recorded freelancer project for a software developer , like using python and django or according to the project requirements ?
@raseshshetty2386
@raseshshetty2386 4 жыл бұрын
python enthusiast but I don’t think anyone would get allowed by the project provider to do so...
@pythonenthusiast9292
@pythonenthusiast9292 4 жыл бұрын
@@raseshshetty2386 maybe.. i was curious as i saw few videos on solving live freelancer projects..I asked becoz his teaching style is unique and easy to understand. Still no worries if thats not possible.
@factodro1461
@factodro1461 4 жыл бұрын
Our family is going to 5ook Congratulations 👍👍
@manojbhavsar3872
@manojbhavsar3872 2 жыл бұрын
9:39 12 in binary = 1100
@pivotprogrammer5602
@pivotprogrammer5602 3 жыл бұрын
Harry bhai content >= software engineer degree (Harry bhai ka video apune ko real kame ka software engineer Bana dega)
@technobd793
@technobd793 4 жыл бұрын
Thanks sir . And love from bangladesh
@kingkie9536
@kingkie9536 4 жыл бұрын
500k ki advance me badai.harry sir... 1, 2 din me ho to ho jaynge pakka❤💥👏
@rs2_0_225
@rs2_0_225 3 ай бұрын
Thanks a lot Harry sir iss code ko samjhane ke liye..
@viral_video_ayana
@viral_video_ayana 2 жыл бұрын
9:40 1100 thankyou bhai 😊support from rajasth
@yogeshpanzade5572
@yogeshpanzade5572 4 жыл бұрын
9:45 12 = 1100
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Correct the binary of 12 is 1100! Lots of love ❤✌
@yogeshpanzade5572
@yogeshpanzade5572 4 жыл бұрын
Thank u
@sandhyabhosale6328
@sandhyabhosale6328 4 жыл бұрын
Heart dedo Harry bhai coder from Hogwarts vidhyalay Delhi
@prakhardhyani7111
@prakhardhyani7111 3 жыл бұрын
We can use in question a[9-i]=rem instead of a[I] and print the normal array 😁
@abhiaryan07
@abhiaryan07 4 жыл бұрын
Bhai which headphones do you use.? Please reply.....
@uncodeyourself4473
@uncodeyourself4473 4 жыл бұрын
thanks harry bhai i had been searching this kind of question for long time
@everydayamazingofficial4615
@everydayamazingofficial4615 3 жыл бұрын
hii Harry, please make a video on number system including hexadecimal, octal number system. As soon as possible .
@ashokbhongade3645
@ashokbhongade3645 4 жыл бұрын
Thanks bhaiyaa. Mujhe is video ki bhot zarroorat thi
@codewithahmed9806
@codewithahmed9806 4 жыл бұрын
Harry Sir Request ! Please Make Advance Tkinter Course ......
@princegarg1086
@princegarg1086 4 жыл бұрын
First comment Bhai react ke series b bnao please
@siddheshmohite283
@siddheshmohite283 2 жыл бұрын
bohot sahi tarikese samjha ,thanks.
@SarveshKumar-bl9in
@SarveshKumar-bl9in Жыл бұрын
confusion is clear now thanks harry
@musicbyx
@musicbyx 8 ай бұрын
9:40 1100 12number binary 😊
@suhaasgambhir2432
@suhaasgambhir2432 4 жыл бұрын
Hell yeahhh 🤩 Long asked question answered 😝
@kairavgamit6354
@kairavgamit6354 4 жыл бұрын
Nice video...sir....make many series on this type of DSA sub. Vid. and hard prob. vids.👍🏻
@loveshkumar8159
@loveshkumar8159 4 жыл бұрын
hello sir m pakistan se ho mene ap ki sab se pahely c++ wali video dekhi tu mujhe os video m bohat kuch sekhne ko mila ............. but i need u r help.............
@brijrajmishra6863
@brijrajmishra6863 4 жыл бұрын
Anyone Could Please Tell Me As A programmer and a developer I should use linux or windows Please Help iam in confusion. Iam not a beginner to programing.
@jasmeetsingh8603
@jasmeetsingh8603 4 жыл бұрын
Windows is Best
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
If you are new to programming then windows is best
@user-tl4fm3zn7u
@user-tl4fm3zn7u 8 ай бұрын
for case of 0 , we can just simply initialize the array to {0}
@murr4551
@murr4551 4 жыл бұрын
Sir , Please make a video on 'How to be a data scientist in 2020' full guidelines.....I am waiting for your instruction on this topic Sir. I have seen other KZbinrs video but they are not clear enough. I am 100% sure that your guidelines will be completely useful as it has always been. Thank you Sir.
@StatusWorld-bp2pq
@StatusWorld-bp2pq 4 жыл бұрын
Please make a video in how to run java script, phython ,java and c in together
@ankittiwari5731
@ankittiwari5731 Жыл бұрын
9:52 ,12 =1100
@technoguide1462
@technoguide1462 4 жыл бұрын
Sir please tell me how was that
@ishasinha5087
@ishasinha5087 4 жыл бұрын
9:32 12-(1100)
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Correct the binary of 12 is 1100! Lots of love ❤✌
@techgourab
@techgourab 2 жыл бұрын
9:38 (12) :- 1100
@HimanshuKumar-ec2hc
@HimanshuKumar-ec2hc 3 жыл бұрын
thank you. very well explained.
@omjogani
@omjogani 4 жыл бұрын
9:44 Binary of 12 is 1100
@monusinghrawat2911
@monusinghrawat2911 3 жыл бұрын
really great sir thank you so much.........
@AmanRaj-wz6ds
@AmanRaj-wz6ds 3 жыл бұрын
Bhai do while loop nahi use kar sakte hai kya comment jarur karna koi bhi jise conferm hai..
@akashrautela8480
@akashrautela8480 4 жыл бұрын
sir please tell me what theme you are using ... i love your tutorials please sir answer me🙏
@hiphopm7069
@hiphopm7069 4 жыл бұрын
Sir jb mai aap ka c++, c ,ya java programming language dekhata hu to mere samjh me aata hai but pura nahi so aap daily ka 20 ya 40 minutes ka ek video uploaded kijiye
@MATHEMATICIANMUHAMMADAHMAD
@MATHEMATICIANMUHAMMADAHMAD 10 ай бұрын
thank you Haris bhai
@mahipalkumarwanika6053
@mahipalkumarwanika6053 2 жыл бұрын
Very nice sir Mahipal kumar
@mayankmaurya3521
@mayankmaurya3521 4 жыл бұрын
Great video
@yogeshchoudhary6828
@yogeshchoudhary6828 4 жыл бұрын
Thanx
@DanishAnsari-gx9ph
@DanishAnsari-gx9ph 4 жыл бұрын
Bro basic operating system banana batao please c programming se
@anonymusk9397
@anonymusk9397 4 жыл бұрын
Bro please make your data structures and algorithms series in python too.please please 🙏🙏🙏🙏🙏🙏🙏🙏
@nikhilraj1842
@nikhilraj1842 4 жыл бұрын
Harry Bhai Please give me heart btw 9:31 12/2 = 6,0 [Quotient,Reminder] 6/2 = 3,0, 3/2 = 1,1 1/2 = 0,1 Taking all reminders 0011 Now reversing it 1100
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Correct! Lots of love ❤✌
@nikhilraj1842
@nikhilraj1842 4 жыл бұрын
@@CodeWithHarry Thank you
@rasul_dude
@rasul_dude 4 жыл бұрын
Iss saal ki Advance Maths ki Pehli Chapter Binary Numbers 😅😅😅
@pratikgurav6778
@pratikgurav6778 4 жыл бұрын
Sir Maine abhi 10th pass kiya hain aur me aage computers me currier Karna chata hu ?)To me software development karu ya soft engineering ya aur koi options hain ?)to main konsi site choose karu aur pcb karu ya pcm karu Please reply me sir U r my role moddel
@bamanevishwajeet
@bamanevishwajeet 4 жыл бұрын
Pleased harry bhai make this program in Python also.... Love you...
@monikasharma6631
@monikasharma6631 4 жыл бұрын
sir anyone is not genius than you you are are built computer sir
@drpunihealth349
@drpunihealth349 4 жыл бұрын
Sir aapse jyada ummid thi es tarah ke program ke liye lekin aap sirf 10%hi samajh paaye ,,bahut jyada kathin bana diye h ,,plz aur esay method se samajhayiye
@ShaizanOfficial
@ShaizanOfficial 2 жыл бұрын
Thank you harry bhai
@jasmeetsingh8603
@jasmeetsingh8603 4 жыл бұрын
Thank You for Video!
@soumyadeepkarmakar5702
@soumyadeepkarmakar5702 4 жыл бұрын
plz make a video on which field(example: app development, web developer , data scientist) in software engg. to get high salary job also can a btech in ECE get this job by his skills.plz make a full detailes video.
@psurya3053
@psurya3053 3 жыл бұрын
sir please make vedio on complete dsa.
@soumyadeepkarmakar5702
@soumyadeepkarmakar5702 4 жыл бұрын
plz make this video in hindi also. I am learining c language fromyour recent video on C.
@alokkhulbay355
@alokkhulbay355 4 жыл бұрын
Harry bhai one question plz tell We have to make a program to add two number of 80 digits using string we can do it or not because there is no any data type which can hold 80 digit number ? Please make avl video showing that program. I have tried it using string functions like by using a to I function of string but it did not work Plz make a video in that!!!!
@mithailal2912
@mithailal2912 4 жыл бұрын
Sir game development wale course ko phir se Suri kar do na please
@hiphopm7069
@hiphopm7069 4 жыл бұрын
Plz sir suru se steps by step sikhaye
@walishaikh6433
@walishaikh6433 4 жыл бұрын
Aap ka hi wait tha bhai pls java ka bhi bada one video banao pls🙏🙏
@engineerbhai7642
@engineerbhai7642 4 жыл бұрын
You are great sir.
@TOURPRM
@TOURPRM 4 жыл бұрын
Awesome work sir
@RohanDasRD
@RohanDasRD 4 жыл бұрын
Awesome bhai♥️
@manikanchanbera85
@manikanchanbera85 2 жыл бұрын
Decimal to binary conversion using bitwise operator (left shift) ka video bana dijiye plzz.
@yuvanshibhalawat6657
@yuvanshibhalawat6657 Жыл бұрын
10.07 binary conversion of 12 is 110.
@akriti__
@akriti__ Жыл бұрын
Pls tell me using for loop and void main
@AdarshSingh-cb5yf
@AdarshSingh-cb5yf 4 жыл бұрын
Thank you sir ...... (My great sir .......) 😍😍❤️❤️❤️❤️❤️❤️❤️❤️
@eaglebr577
@eaglebr577 4 жыл бұрын
9:45
@Ur.Podcast_Buddy
@Ur.Podcast_Buddy 4 жыл бұрын
Make a video of gpt 3 harry bro
@Ur.Podcast_Buddy
@Ur.Podcast_Buddy 4 жыл бұрын
@codewithharry @programmingwithharry
@yashraj8584
@yashraj8584 4 жыл бұрын
Dude, ye series placements k liye helpful rahegi kya?
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Yes bro! Such type of questions are very frequently asked in the placements!
@NileshRaut6000
@NileshRaut6000 2 жыл бұрын
*HW* 9:43 -----> 1100
@umangkumar7373
@umangkumar7373 3 жыл бұрын
9:27 best
@sunitasaini4118
@sunitasaini4118 2 жыл бұрын
Thank you sir 💜💫
@satishpatra8086
@satishpatra8086 4 жыл бұрын
9:50 12- 1100
@girijeshgothriwal1305
@girijeshgothriwal1305 4 жыл бұрын
Bhai, SQL pe bhi bana do kuchh.. KZbin pe bas basics hi hain.. aap python playlist jaise kuchh SQL me bhi bana do..
@hrushikeshwaghmare7261
@hrushikeshwaghmare7261 4 жыл бұрын
You are great bro .
@blackmangamer9265
@blackmangamer9265 2 жыл бұрын
Thank you lot of 😀❤️
@rupamkayal6081
@rupamkayal6081 Жыл бұрын
In this while loop ,How we are stop this while loop... ? Please help me to understand this...!!
@cricketlover5635
@cricketlover5635 2 жыл бұрын
Bring C# tutorial please...
C Program to Reverse a Number
17:56
CodeWithHarry
Рет қаралды 86 М.
Convert Decimal Number To Binary Number | C Programming Example
7:20
Portfolio Courses
Рет қаралды 15 М.
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 79 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 10 МЛН
why do header files even exist?
10:53
Low Level Learning
Рет қаралды 400 М.
How To Convert Decimal to Binary
13:24
The Organic Chemistry Tutor
Рет қаралды 4,6 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 303 М.
Which Operating System I use and Why 💻
14:57
CodeWithHarry
Рет қаралды 126 М.
Special Programs in C − Binary to Decimal Conversion
7:40
Neso Academy
Рет қаралды 235 М.
31 - DECIMAL TO BINARY CONVERSION - C PROGRAMMING
15:06
Sundeep Saradhi Kanthety
Рет қаралды 124 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,7 МЛН
Binary, Decimal,Octal, Hexadecimal Conversion in Hindi Computer Architecture lec-1
46:07
C Program to Find Prime Number
27:20
CodeWithHarry
Рет қаралды 139 М.
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 79 МЛН