Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Recommendation for some books for in-depth knowledge of pointers, multi-dimensional arrays, recursions . (In c/c++)

Recommendation for some books for in-depth knowledge of pointers, multi-dimensional arrays, recursions . (In c/c++)

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structures
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tarun Jha
    wrote on last edited by
    #1

    I have the basic level knowledge of pointers, arrays and recursion's. But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from. So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice. THANK YOU.

    CPalliniC D J 3 Replies Last reply
    0
    • T Tarun Jha

      I have the basic level knowledge of pointers, arrays and recursion's. But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from. So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice. THANK YOU.

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      You may find tons of reference (and dereference) material on pointers and the like, just Googling.

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • T Tarun Jha

        I have the basic level knowledge of pointers, arrays and recursion's. But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from. So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice. THANK YOU.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Tarun Jha wrote:

        ...like when returning a multi-dimensional array from a user-defined function...

        The issue you may be having is you are searching for something very specific. Broaden your search. Instead of searching for a two- or three-dimension array, just focus on arrays in general. Visually, you might look at them something like:

        // one 'row' with five items
        int arr[5]; // [0][1][2][3][4]

        // three 'rows' with five items each
        int arr[3][5]; // [0] - [0][1][2][3][4]
        // [1] - [0][1][2][3][4]
        // [2] - [0][1][2][3][4]

        // two 'levels' of three 'rows' with five items each
        int arr[2][3][5]; // [0] - [0] - [0][1][2][3][4]
        // [0] - [1] - [0][1][2][3][4]
        // [0] - [2] - [0][1][2][3][4]

                      // \[1\] - \[0\] - \[0\]\[1\]\[2\]\[3\]\[4\]
                      // \[1\] - \[1\] - \[0\]\[1\]\[2\]\[3\]\[4\]
                      // \[1\] - \[2\] - \[0\]\[1\]\[2\]\[3\]\[4\]
        

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        1 Reply Last reply
        0
        • T Tarun Jha

          I have the basic level knowledge of pointers, arrays and recursion's. But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from. So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice. THANK YOU.

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #4

          They're all pointers, and pointers are simply an address in memory. Everyone is different, but for me, the best way to really understand a C++ concept is to write a small console program and experiment using the scientific method--that is, I hypothesize how something should work, write simple code to test that hypothesis and refine. (Sometimes, I open a disassembly view in debug mode, but that may understandably be even more confusing for many.) Edit: A word of warning. Don't return a pointer to an object allocated on the called function's stack. While the data it points to may be valid immediately after the call, it will likely become corrupt with the next function call.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups