Skip to content

Instantly share code, notes, and snippets.

@shelling
Created September 26, 2009 08:00
Show Gist options
  • Select an option

  • Save shelling/194110 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/194110 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include "my.h"
int main () {
int a;
scanf("%d", &a);
int array[ a ]; // C99's variable-length array
for ( int i = 0 ; i < a ; i++ ) {
array[ i ] = i;
}
inspect_array( array, a );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment