Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #27.9K
Re:
Hi, I need an array of approx. 2,00,000 elements.But malloc fails to allocate beyond 65872. When I give (short int*)malloc(sizeof(short int)*65000); It works but seg faults when I give (short int*)malloc(sizeof(short int)*66000); whatsup with that? |
|
Hi I'm trying to write a simple version of the tail program in linux, but I keep getting a seg fault when I run the program. I wrote a simpler version but with fixed number of lines to print and using [code] char lines[10][100]; [/code] instead of [code] char **lines; … |