Skip to content

Instantly share code, notes, and snippets.

@VehpuS
Last active May 10, 2018 07:44
Show Gist options
  • Save VehpuS/601f758f92d528852e2e30ca410f9161 to your computer and use it in GitHub Desktop.
Save VehpuS/601f758f92d528852e2e30ca410f9161 to your computer and use it in GitHub Desktop.
OutstandingSmartArtificialintelligence created by VehpuS - https://repl.it/@VehpuS/OutstandingSmartArtificialintelligence
#include <stdio.h>
char txt[] = {
[(0 << 0) ... ((1 << 0) - 1)] = '0',
[(1 << 0) ... ((1 << 1) - 1)] = '1',
[(1 << 1) ... ((1 << 2) - 1)] = '2',
[(1 << 2) ... ((1 << 3) - 1)] = '3',
[(1 << 3) ... ((1 << 4) - 1)] = '4',
[(1 << 4) ... ((1 << 5) - 1)] = '5',
'\0'
};
int main(void) {
printf("%s\n", txt);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment