Thread: "can I do this" question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    9

    "can I do this" question

    ok so under the advisement of my tutor/teacher I am writing my first pseudo code document for a project decently large for my history and my question is this, is it possible to pass a pointer to an array that stores the whole array, not just one part of it?

    an example would be

    Code:
    char my_array[<sub_1_max>][<sub_2_max>];
    char *myptr = my_array[<sub_1>][<sub_2>]
    the above code would point to the specific position defined by <sub_1> and <sub_2>, but how would I call a pointer to just my_array and actively access its members based on what part I want the code to access next?

    thanks, I hope this makes sense, if it doesnt ill write up some small program to illustrate.
    Last edited by Arcand; 08-02-2012 at 07:49 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 46
    Last Post: 08-24-2007, 04:52 PM
  2. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  3. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM