white board: write a function that determines if a given variable is a power of 2 or not
Anonymous
int check_pwr_of_2(int num) { if((num & (num-1)) == 0) { return 1; } return 0; }
Check out your Company Bowl for anonymous work chats.
Copyright © 2008-2026. Indeed, Inc. "Glassdoor," "Worklife Pro," "Bowls," and logo are proprietary trademarks of Indeed, Inc.