Special Programs in C − Binary to Decimal Conversion

Special Programs in C − Binary to Decimal Conversion

Neso Academy

5 лет назад

232,347 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

tahaur khan
tahaur khan - 06.10.2023 21:28

sir give best logic and i write in exam 40 line code to convert binary to decimal and code wasn't run

Ответить
Ninja vlogs antaru ra babu..
Ninja vlogs antaru ra babu.. - 27.04.2023 12:11

Sir u make more series on only focusing on problem..

Ответить
CEO of Clown Stars
CEO of Clown Stars - 31.03.2023 18:48

😢

Ответить
Rudra Chakraborty
Rudra Chakraborty - 16.02.2023 23:39

Thank you, sir. This really helped me with my paper 1 programming practice. From London

Ответить
Avishek Bhatta
Avishek Bhatta - 02.02.2023 19:22

best channel.................................................

Ответить
beauty
beauty - 22.01.2023 18:17

Wow 💜💜💜
... So nicely explained

Ответить
BoB Lopez
BoB Lopez - 29.12.2022 01:09

I did this program using shift left operator(<<) , you can change the line ( decimal = decimal + rem*weight ;) with ( decimal= decimal + rem<<weight ;) and remove (weight = weight *2 ; ) and initialize weight with zero and it'll give you the same output , cuz shifting left is equal to multiplying with 2^weight

Ответить
Dam Bro
Dam Bro - 10.12.2022 12:24

i did it using biwise operators! it worked! ig
int bin_dec()
{
int bin,dec;
scanf("%d",&bin);
for (int shift; bin!=0; shift++)
{
int r = bin%10;
dec = (r<<shift)|dec;
bin /= 10;
}
printf("%d",dec);

}

Ответить
Minku
Minku - 30.11.2022 01:53

Program for binary to hexa?

Ответить
Helder K. J. Pedro
Helder K. J. Pedro - 28.11.2022 03:26

Thank you so much 🙏🏽

Ответить
Petar
Petar - 29.10.2022 17:24

int n;
unsigned i;
scanf("%d", &n);
for(i=1<<31;i>0;i>>=1)
i&n?printf("1"):printf("0");

Ответить
Kartik gupta
Kartik gupta - 02.10.2022 15:41

Codes don't get executed which you teach in the window.....

Ответить
Gadgets Forest
Gadgets Forest - 11.09.2022 19:42

As the weight of first digit from right side is zero then why we take it 1???

Ответить
Sahil Arora
Sahil Arora - 10.09.2022 18:42

very nice explanation thank you sir

Ответить
MD MUQUIM AKHTER
MD MUQUIM AKHTER - 05.09.2022 16:20

awesomely explained

Ответить
Ramananda Sharma
Ramananda Sharma - 03.09.2022 07:37

please give the flowchart and algorithm for this

Ответить
Redric Blue
Redric Blue - 16.08.2022 18:14

Why did I choose software engineering? It's fucking hard

Ответить
Gaming Cousins Tamil
Gaming Cousins Tamil - 06.08.2022 16:59

Super sir

Ответить
Manoj Raut
Manoj Raut - 22.04.2022 20:58

You are Best.👏

Ответить