Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C
allocating memory for 1Mb text file in C
je_b
Programming language:
C
2021-03-26 04:58:30
1
Q:
allocating memory for 1Mb text file in C
Hasti Sadeghi
Code:
C
2021-04-05 22:29:42
char *one_MB_file = (char*) malloc(sizeof(char));
0
Tags
file
text
text file
Related
c allocate array
toggling setting clearing checking changing a bit in c
how to free memory in c
what are the causes of memory leaks in c
how to check the size of a file c
deallocate memory in c
New to Communities?
Join the community