Skip to content

Instantly share code, notes, and snippets.

@kirugan
Created July 28, 2018 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirugan/cec2aa0e17781a4178bb20f6483ebba5 to your computer and use it in GitHub Desktop.
Save kirugan/cec2aa0e17781a4178bb20f6483ebba5 to your computer and use it in GitHub Desktop.
activation record test
#include <stdio.h>
/**
* channeling "feature" in activation record
*/
void DeclareAndInitArray() {
int array[100];
int j;
int i;
for (i = 0; i < 100; i++) {
array[i] = i;
}
j++;
}
void PrintArray() {
int array[100];
int i;
for (i = 0; i < 100; i++) {
printf("I %d = %d\n", i, array[i]);
}
}
int main() {
printf("%s", 3433434);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment