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 #72.8K
1 Posted Topic
Re: C doesn't have definition for "new." The way to dynamicly create arrays in C is to use malloc. for example instead of: [code]int* intArrayPtr; intArrayPtr = new int[someSize]; [/code] you would use [code] int* intArrayPtr; intArrayPtr = (int*) malloc(someSize * sizeof(int)); [/code] malloc always returns a void* which you can … |