Quantcast
Channel: Loopholes that are forbidden by default - Code Golf Meta Stack Exchange
Viewing all articles
Browse latest Browse all 57

Answer by Christopher Wirt for Loopholes that are forbidden by default

$
0
0

Using lots of spaces to "hide" code out of bounds, especially in questions. This isn't very clever or tricky, in my opinion, and yet wins all too often.

Example:

#include <stdio.h>#include <time.h>#include <stdlib.h>int main() {    srand(time(NULL)); // Make sure to seed rand so it's VERY random, we want to make super sure that it's very random! Otherwise the program is useless!    int r = rand() % 6 + 1;                                                                                                                                                                                                              r = 5; // Sneaky sneaky!    printf("Here is your TOTALLY random dice roll: %d",r);}

Viewing all articles
Browse latest Browse all 57

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>