C programming - C program to Check whether a given number is power of 2 or not?

preview_player
Показать описание
This Video deals with a C program to Check whether a given number is power of 2 or not?

This program is one of the most frequently asked program in interviews.

Beginners in C programming will also be able to learn from this video.

Thanks for watching !!
Рекомендации по теме
Комментарии
Автор

basically i was searching for the solve and there were many yt video infront of me but this was at the top of the list after finishing the video i came to know why it was top of the list .thank you

jahidhassansabbir-zw
Автор

thank you for such simple explanation. Last night I was stuck with this problem for hours, read tutorials and articles related to it, but I was not able to get the logic behind it. your video cleared all of my queries. thank you

rushabhmaske
Автор

Thank u sir.. very much helpful...and easily understood

chaithrar
Автор

I tried so many logics, it takes two lines minimum. but this is really little bit different. One line code . Thank you sir

sriramamara
Автор

Thank you Sir. Nice explanation. Can you please confirm the logic for the power as well. Means, if the number is in the power of 2 then by what value.

nikitamittal
Автор

I understood the logic Thankyou but can anyone explain me why we should take like that in If condition

Mukeshsainaidu