Search:

Type: Posts; User: Quant89

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    2,205

    Thanks for your answer, but if I do it that way,...

    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...
  2. Replies
    10
    Views
    2,205

    Thanks a lot for your extensive answer, greatly...

    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...
  3. Replies
    10
    Views
    2,205

    Thanks for your answers guys. I thought that...

    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...
  4. Replies
    10
    Views
    2,205

    Pointers as Arguments in Functions

    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...
  5. Replies
    10
    Views
    1,884

    Hey thanks a lot guys, got my code to run as...

    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...
  6. Replies
    10
    Views
    1,884

    Thanks for your answer. Why should I use lists...

    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]
  7. Replies
    10
    Views
    1,884

    Merge-Sort Algorithm in C

    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...
  8. Replies
    1
    Views
    1,082

    Variable-Length Arrays

    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...
Results 1 to 8 of 8