30 Reputation Points
Ranked #833
- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: [code=c] void* ptr = buf_ptr[20]; //----------->error [/code] what i want to say is "buf_ptr[20]" is not a pointer,it's the value of the 20th in buf_ptr | |
Re: first of all,u should add seed of random data void srand( unsigned int seed ); use current time as seed! | |
Re: use "pointer" to define ur function like this void PrintMatrix(int *matrix); and it will work good! | |
Re: U can try to use function like "fflush(stdin)",when u call it ,it can also clear the input buffer | |
Re: // fill in the array is not shown here qsort(array, NumStrings, sizeof(array[0]), compare); here,"sizeof(array[0])" is 20bytes; // fill in the array is not shown here qsort(array, NumStrings, sizeof(array[0]), compare); but here,"sizeof(arry[0])" arry[0] is a pointer,so it's mean 4bytes |