#include <stdio.h> int main(int argc, char **argv) { int rtv; printf("%d\n",is_power_of_two(atoi(argv[1]))); } int is_power_of_two(unsigned n) { return ( (n > 0) && !(n & (n - 1)) ); }
Copyrights © - Joinc, All Rights Reserved. Inherited From - Yundream Rebranded By - Joonphil
is_power_of_two
Recent Posts
Archive Posts
Tags