Thanks for your answer, but if I do it that way, what exactly is the point of using pointers?
Is it not possible to return two values in an int function and using a void function with pointer...
Type: Posts; User: Quant89
Thanks for your answer, but if I do it that way, what exactly is the point of using pointers?
Is it not possible to return two values in an int function and using a void function with pointer...
Thanks a lot for your extensive answer, greatly appreciated. I have some questions left though.
"The assignment *largest = <anything> does not change what largest points at."
Does this only...
Thanks for your answers guys.
I thought that largest=a and second_largest=a would assign the address of the first element of the array to both pointer variables. Is that incorrect? I learned that...
Hi,
I'm having some problems with a function. The function is supposed to find the two largest values in an array.
void find_two_largest( const int *a, int n, int *largest, int...
Hey thanks a lot guys, got my code to run as intended now, really appreciate your answers.
One more question though, I got my code to run using both pointers and simply integer variables i and j...
Thanks for your answer.
Why should I use lists and not arrays? Can't I do the same with arrays?
This is the pseudocode I got:
C = output [N]
A = 1st sorted array [N/2]
Hi,
I'm trying to implement the Merge-Sort algorithm. I only had the pseudocode for it and have some problems coding this into C.
I'm still relatively new to C, have only covered pointers...
Hey,
this is my first post on this forum. I'm new to programming and decided to start learning C by reading K.N King's book "C Programming- A Modern Approach".
I'm currently working through the...