0 Members and 1 Guest are viewing this topic.
(only using operators and without orders if / for / while etc)
#include <stdio.h>int main(void){ unsigned int v = 35; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; printf("%u\n", -~v); return 0;}