Created
July 28, 2018 17:44
-
-
Save kirugan/cec2aa0e17781a4178bb20f6483ebba5 to your computer and use it in GitHub Desktop.
activation record test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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