Skip to content

Instantly share code, notes, and snippets.

@whyrusleeping
Created October 5, 2012 19:53

Revisions

  1. whyrusleeping created this gist Oct 5, 2012.
    15 changes: 15 additions & 0 deletions for shortcut
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #include <stdio.h>

    #define DO(n) for(int i = 0; i < n; i++)

    int main()
    {
    int arr[10];
    DO(10)
    arr[i] = 2 * i;

    DO(10)
    printf("%d\n", arr[i]);

    return 0;
    }