Created
August 8, 2014 07:17
-
-
Save paranoidxc/188c37978648f4d66fb3 to your computer and use it in GitHub Desktop.
动态分配数组
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 "HEDE_FILE" | |
int main() { | |
int *array, i, n; | |
scanf("%d", &n); | |
array = (int *)Malloc( n * sizeof(int) ); | |
for( i = 0; i < n; i ++ ) { | |
scanf("%d", &array[i]); | |
} | |
exit(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment